Skip to content

Instantly share code, notes, and snippets.

@riyadhalnur
Last active November 15, 2017 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save riyadhalnur/ca240a9d71786b77ddfe to your computer and use it in GitHub Desktop.
Save riyadhalnur/ca240a9d71786b77ddfe to your computer and use it in GitHub Desktop.
Add more options to the express app when using KeystoneJS
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