We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
//in path/to/app var express = require('express'); module.exports = function() { var app = express(); //setup anything app specific // view engine // view paths // routes app.get('/login', require('./path/to/loginMiddleware')); app.post('/login', require('./path/to/loginPostMiddleware')); app.get('/some/other/route', require('./path/to/otherRouteMiddleware')); return app; }
<env>.json
{ "middleware": { "subapp" : { "enabled" : true, "priority": 100 /*your appropriate priority*/, "module": { "name": "path:./path/to/app" } } } }