Added HTTPS to express

This commit is contained in:
Paolo Arena
2018-12-27 20:09:40 +01:00
parent 06cd4b8f0d
commit 46ccddc764
5 changed files with 38 additions and 9 deletions

View File

@@ -8,6 +8,8 @@ const _ = require('lodash');
// Resolving error Unknown modifier: $pushAll
mongoose.plugin(schema => { schema.options.usePushEach = true });
mongoose.set('debug', process.env.DEBUG);
var UserSchema = new mongoose.Schema({
email: {
type: String,