diff --git a/index.ts b/index.ts index 17f043b..1b4b159 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,3 @@ -import fastify from 'fastify' import app from './src/app' /* @@ -9,18 +8,13 @@ import './src/config' /* initialize fastify */ -const server = fastify({ +const server = app({ ignoreTrailingSlash: true, logger: { level: process.env.LOG_LEVEL } }) -/* - register app plugin -*/ -void server.register(app) - /* start and listen to connections */