feat: Serve static assets of apps
This commit is contained in:
@@ -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 }));
|
||||
|
Reference in New Issue
Block a user