/* Mount sub apps. only _after_ we have done all the middleware we need. */
for (let key in engines) {
const engine = engines[key];
- app.use(`/${engine.name}/[a-zA-Z0-9]{4}/`, engine.app);
+ app.use(`/${engine.name}/[a-zA-Z0-9]{4}/`, engine.router);
}
app.listen(4000, function () {