feat: User invitation system.

This commit is contained in:
Ahmed Bouhuolia
2020-04-23 20:09:07 +02:00
parent 1e13aa16ac
commit 11e3d4c1a9
23 changed files with 970 additions and 50 deletions

View File

@@ -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);