-
-
Save VinayaSathyanarayana/d45ee9aeb2996206297316cc897c2d7c to your computer and use it in GitHub Desktop.
Add more options to the express app when using KeystoneJS
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