feat: Re-compute the given items cost job.

feat: Optimize the architecture.
This commit is contained in:
Ahmed Bouhuolia
2020-08-18 02:28:08 +02:00
parent 4e68a7db71
commit d423365a19
44 changed files with 1605 additions and 798 deletions

View File

@@ -0,0 +1,21 @@
import express from 'express';
import helmet from 'helmet';
import boom from 'express-boom';
import errorHandler from 'errorhandler';
import i18n from 'i18n';
import fileUpload from 'express-fileupload';
import routes from '@/http';
export default ({ app }) => {
// Express configuration.
app.set('port', 3000);
app.use(helmet());
app.use(errorHandler());
app.use(boom());
app.use(express.json());
app.use(fileUpload({
createParentPath: true,
}));
routes(app);
};