Rearranged and refactored main Api Class

This commit is contained in:
Alexis
2021-08-03 17:33:20 +02:00
parent 288432244b
commit fabe285fb2
2 changed files with 49 additions and 44 deletions

View File

@@ -22,7 +22,7 @@ import { SpellRouter } from './routes/SpellRouter';
const apiPort = process.env.API_PORT
const app = new AuracleApi({
const api = new AuracleApi({
port: apiPort,
database: AuracleDatabaseDriver,
@@ -36,6 +36,3 @@ const app = new AuracleApi({
helmet()
],
})
// Listens on apiPort...
app.listen()