diff --git a/pages/api/v2/bots/[id].ts b/pages/api/v2/bots/[id].ts index 433af6b..c30a6cc 100644 --- a/pages/api/v2/bots/[id].ts +++ b/pages/api/v2/bots/[id].ts @@ -6,7 +6,7 @@ import ResponseWrapper from '@utils/ResponseWrapper' import { checkToken } from '@utils/Csrf' import { AddBotSubmit, AddBotSubmitSchema } from '@utils/Yup' -const BotInfo = nc() +const Bots = nc() .get(async(req, res) => { const bot = await get.bot.load(req.query.id) if(!bot) return ResponseWrapper(res, { code: 404, message: '존재하지 않는 봇입니다.' }) @@ -38,10 +38,10 @@ const BotInfo = nc() }) interface ApiRequest extends NextApiRequest { - body: AddBotSubmit + body: AddBotSubmit | null query: { id: string } } -export default BotInfo \ No newline at end of file +export default Bots \ No newline at end of file