fix: fix cors

This commit is contained in:
Steve Korshakov 2025-08-27 00:01:57 -07:00
parent 13a6e4a0a9
commit bf15353dd0

View File

@ -64,7 +64,7 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }>
app.register(import('@fastify/cors'), {
origin: '*',
allowedHeaders: '*',
methods: ['GET', 'POST']
methods: ['GET', 'POST', 'DELETE']
});
app.get('/', function (request, reply) {
reply.send('Welcome to Happy Server!');