diff --git a/packages/api-server/src/routes/explorer/questions/answer/index.ts b/packages/api-server/src/routes/explorer/answer/index.ts similarity index 90% rename from packages/api-server/src/routes/explorer/questions/answer/index.ts rename to packages/api-server/src/routes/explorer/answer/index.ts index 49b07e6850d..96ac5d3b5f3 100644 --- a/packages/api-server/src/routes/explorer/questions/answer/index.ts +++ b/packages/api-server/src/routes/explorer/answer/index.ts @@ -1,11 +1,11 @@ import {FastifyPluginAsyncJsonSchemaToTs} from "@fastify/type-provider-json-schema-to-ts"; import {DateTime} from "luxon"; -import {Question, QuestionStatus} from "../../../../plugins/services/explorer-service/types"; -import {APIError} from "../../../../utils/error"; -import sleep from "../../../../utils/sleep"; +import {Question, QuestionStatus} from "../../../plugins/services/explorer-service/types"; +import {APIError} from "../../../utils/error"; +import sleep from "../../../utils/sleep"; const schema = { - summary: 'Answer new a question (full response)', + summary: 'Get answer of a new question', description: 'Answer a question to the AI bot, he will return a sql query, and execute the query to get the result.', tags: ['explorer'], body: {