Permissions authorization middleware.

This commit is contained in:
Ahmed Bouhuolia
2019-09-16 01:08:19 +02:00
parent ed4d37c8fb
commit de905d7e7c
23 changed files with 318 additions and 51 deletions

View File

@@ -1,4 +1,5 @@
import express from 'express';
import helmet from 'helmet';
import boom from 'express-boom';
import '../config';
import routes from '@/http';
@@ -8,6 +9,7 @@ const app = express();
// Express configuration
app.set('port', process.env.PORT || 3000);
app.use(helmet());
app.use(boom());
app.use(express.json());