| 137 | }; |
| 138 | |
| 139 | const setupRedirectMiddleware = app => app.all('/account/profile/*', function(req, res, next) { |
| 140 | const nameOrID = req.path.split('/')[3]; |
| 141 | return res.redirect(301, `/user/${nameOrID}/profile`); |
| 142 | }); |
| 143 | |
| 144 | const setupFeaturesMiddleware = app => app.use(function(req, res, next) { |
| 145 | // TODO: Share these defaults with run-tests.js |