Integrated the error middleware into the api.ts
This commit is contained in:
parent
49bce43abe
commit
391dec0026
@ -3,6 +3,7 @@ import express, {Express} from 'express';
|
||||
const app: Express = express();
|
||||
|
||||
app.use(express.json());
|
||||
app.use(require('../api/middlewares/error'));
|
||||
|
||||
/** Logs something with an api prefix */
|
||||
const log = (msg: string) => console.log(`[API] ${msg}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user