initial
This commit is contained in:
9
src/helpers/express/morgan.ts
Normal file
9
src/helpers/express/morgan.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import config from 'config';
|
||||
import morgan from 'morgan';
|
||||
import express from 'express';
|
||||
|
||||
export class MorganHelper {
|
||||
static setup(app: express.Application) {
|
||||
app.use(morgan(config.get('server.morgan')));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user