mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 21:48:08 +08:00
chore: add a quick way to emulate api delay on localhost
This commit is contained in:
parent
09c91f5ad0
commit
4ea7cea0ce
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,12 @@ function addApiRoutes(app: Application): void {
|
|||
return next();
|
||||
});
|
||||
app.use("/configure", expressStatic(join(__dirname, "../../../private")));
|
||||
|
||||
//simulate delay for all requests
|
||||
// app.use(async (req, res, next) => {
|
||||
// await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
// next();
|
||||
// });
|
||||
}
|
||||
|
||||
addSwaggerMiddlewares(app);
|
||||
|
|
Loading…
Add table
Reference in a new issue