Created
April 20, 2016 02:23
-
-
Save geraldyeo/bf460f2ac0fb69a55568dfb3574f12cc to your computer and use it in GitHub Desktop.
adding more options for express server
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
| var keystone = require('keystone'); | |
| var express = require('express'); | |
| var body = require('body-parser'); | |
| var helmet = require('helmet'); | |
| var app = express(); | |
| app.use(body.urlencoded({ extended: false })); | |
| app.use(body.json()); | |
| app.use(helmet()); | |
| keystone.app = app; | |
| keystone.init({...}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment