9 lines
224 B
TypeScript
9 lines
224 B
TypeScript
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')));
|
|
}
|
|
} |