Verified Commit 3215c9c3 authored by Sebastiaan Deckers's avatar Sebastiaan Deckers 馃悜

fix: context argument is not needed

parent d5cfb857
......@@ -16,9 +16,7 @@ module.exports = async (fastify, options) => {
await promisify(mkdirp)(root)
server.register(require('../routes/get'))
server.register(require('fastify-static'), { root, prefix })
fastify.addHook('onClose', (fastify, done) => {
server.close(done)
})
fastify.addHook('onClose', () => server.close())
await server.listen(options.port, options.host)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment