Skip to content

Instantly share code, notes, and snippets.

@jinalshah999
Created January 30, 2021 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jinalshah999/b9de3710b6f18742580e05cbf948d992 to your computer and use it in GitHub Desktop.
Save jinalshah999/b9de3710b6f18742580e05cbf948d992 to your computer and use it in GitHub Desktop.
const express = require('express');
global.CONFIG = require('./config/environment');
const bodyparser = require('body-parser');
const app = express();
async function init() {
const mssqlconnection = require('./utilities/mssqlconnection');
global.MSSQLConnection = mssqlconnection.getConnection(global.CONFIG.mssql);
app.use(bodyparser.json({ limit: '50mb' }));
app.use(bodyparser.urlencoded({ limit: '50mb', extended: true, parameterLimit: 50000 }));
const approuting = require('./modules');
const appmodules = new approuting(app);
appmodules.init();
}
init();
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment