- Fixed SQL injection ""issue""

And various code cleaning things for spell route
This commit is contained in:
Alexis
2020-05-14 21:02:38 +02:00
parent 412402404b
commit 0766487309
7 changed files with 171 additions and 95 deletions

View File

@@ -23,9 +23,3 @@ const server = app.listen( port, () => {console.log(`App listening on port ${por
// Routing
app.use('/api/spells', routes.spells)
// On process kill with SIGINT
process.on('SIGINT', () => {
db.end()
server.close()
})