mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: User invitation system.
This commit is contained in:
@@ -2,10 +2,13 @@ import express from 'express';
|
||||
import helmet from 'helmet';
|
||||
import boom from 'express-boom';
|
||||
import i18n from 'i18n';
|
||||
import rootPath from 'app-root-path';
|
||||
import fileUpload from 'express-fileupload';
|
||||
import '../config';
|
||||
import '@/database/objection';
|
||||
import routes from '@/http';
|
||||
|
||||
global.rootPath = rootPath.path;
|
||||
|
||||
const app = express();
|
||||
|
||||
@@ -29,6 +32,10 @@ app.set('port', process.env.PORT || 3000);
|
||||
app.use(helmet());
|
||||
app.use(boom());
|
||||
app.use(express.json());
|
||||
app.use(fileUpload({
|
||||
createParentPath: true,
|
||||
// safeFileNames: true,
|
||||
}));
|
||||
|
||||
routes(app);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user