diff --git a/server/routes/index.ts b/server/routes/index.ts index 24a3192..0541bb3 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -11,7 +11,7 @@ import { } from '../../../../src/core/server'; import QueryService from '../services/QueryService'; import TranslateService from '../services/TranslateService'; -import registerQueryRoute from './query'; +import { registerQueryRoute } from './query'; import registerTranslateRoute from './translate'; export function defineRoutes( diff --git a/server/routes/query.ts b/server/routes/query.ts index 597bbdc..c3e895a 100644 --- a/server/routes/query.ts +++ b/server/routes/query.ts @@ -20,7 +20,7 @@ import { ROUTE_PATH_SQL_TEXT, } from '../utils/constants'; -export default function query(server: IRouter, service: QueryService) { +export function registerQueryRoute(server: IRouter, service: QueryService) { server.post( { path: ROUTE_PATH_SQL_QUERY,