diff --git a/src/pages/api/healthcheck.ts b/src/pages/api/healthcheck.ts new file mode 100644 index 000000000..75a631adc --- /dev/null +++ b/src/pages/api/healthcheck.ts @@ -0,0 +1,13 @@ +import { handlerWrapper } from '@/server/common' +import { z } from 'zod' + +export default handlerWrapper({ + inputSchema: z.any(), + dataGetter: (req) => req.query, +})({ + errorLabel: 'healthcheck', + allowedMethods: ['GET'], + handler: async (_, __, res) => { + res.json({ message: 'OK', success: true }) + }, +})