diff --git a/sources/app/api.ts b/sources/app/api.ts index 762b809..c7832aa 100644 --- a/sources/app/api.ts +++ b/sources/app/api.ts @@ -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!');