Skip to content

Commit

Permalink
index: remove fastify for the sake of the new build function
Browse files Browse the repository at this point in the history
  • Loading branch information
MomenNano committed Aug 4, 2022
1 parent 0215f7d commit b53cf5d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fastify from 'fastify'
import app from './src/app'

/*
Expand All @@ -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
*/
Expand Down

0 comments on commit b53cf5d

Please sign in to comment.