feat: Serve static assets of apps

This commit is contained in:
Faruk AYDIN
2021-10-19 16:29:37 +02:00
committed by Ali BARIN
parent 5a2de1de9e
commit 672cc4c60c
17 changed files with 118 additions and 23 deletions

View File

@@ -6,6 +6,7 @@ import corsOptions from './config/cors-options';
import graphQLInstance from './helpers/graphql-instance';
import logger from './helpers/logger';
import morgan from './helpers/morgan';
import appAssetsHandler from './helpers/app-assets-handler';
import errorHandler from './helpers/error-handler';
import './config/database';
import authentication from './helpers/authentication';
@@ -13,6 +14,8 @@ import authentication from './helpers/authentication';
const app = express();
const port = appConfig.port;
appAssetsHandler(app)
app.use(morgan);
app.use(express.json());
app.use(express.urlencoded({ extended: false }));