var _express = require("express");
function expressWrapper(anExport)
{
var mount = _express();
var app = _express();
// "mount" is our root app, and it mounts "app" at your notebook path
// which is available in the TONIC_MOUNT_PATH environment variable
mount.use(process.env.TONIC_MOUNT_PATH || "", app);
if (anExport) {
anExport.tonicEndpoint = mount;
}
app.listen = function(){};
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: false }));
app.use(function(req, res, next) {
res.setHeader("designed-by", "msms");
next();
});
return app;
}
module.exports = expressWrapper