Last active
July 3, 2018 20:48
-
-
Save msfidelis/049457293e213662f1cefe974b11110e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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