more cleanup

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-08 22:04:24 +02:00
parent 14d64aea0b
commit 71802dc236
7 changed files with 23 additions and 27 deletions

View File

@@ -33,10 +33,10 @@ const startServer = async () => {
fastify.register(profileRouter, { prefix: '/profile' });
fastify.register(liveRouter, { prefix: '/live' });
fastify.register(miscRouter, { prefix: '/misc' });
fastify.setErrorHandler((error, request, reply) => {
fastify.setErrorHandler((error) => {
fastify.log.error(error);
});
fastify.get('/', (request, reply) => {
fastify.get('/', (_request, reply) => {
reply.send({ name: 'openpanel sdk api' });
});
// fastify.get('/health-check', async (request, reply) => {