mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
Permissions authorization middleware.
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user