MCPcopy Index your code
hub / github.com/codecombat/codecombat / setupOneSecondDelayMiddleware

Function setupOneSecondDelayMiddleware

server_setup.js:133–137  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

131};
132
133const setupOneSecondDelayMiddleware = function(app) {
134 if(config.slow_down) {
135 return app.use((req, res, next) => setTimeout((() => next()), 1000));
136 }
137};
138
139const setupRedirectMiddleware = app => app.all('/account/profile/*', function(req, res, next) {
140 const nameOrID = req.path.split('/')[3];

Callers 1

server_setup.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected