Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Last active July 3, 2018 20:48
Show Gist options
  • Save msfidelis/049457293e213662f1cefe974b11110e to your computer and use it in GitHub Desktop.
Save msfidelis/049457293e213662f1cefe974b11110e to your computer and use it in GitHub Desktop.
'use strict';
const express = require('express');
const bodyParser = require('body-parser');
const helmet = require('helmet');
const cors = require('cors');
const consign = require('consign');
const app = express();
app.use(cors());
app.use(helmet());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
consign()
.include('controllers')
.into(app);
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment