mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 02:25:08 +00:00
remove slow
This commit is contained in:
parent
98197c98ea
commit
d96422afea
1 changed files with 6 additions and 6 deletions
12
server.js
12
server.js
|
|
@ -20,12 +20,12 @@ app.use(bodyParser.json());
|
|||
app.set('json spaces', 2);
|
||||
|
||||
// emulate slow down
|
||||
app.use( (req,res,next) => {
|
||||
console.log("slow...");
|
||||
setTimeout(() => {
|
||||
next();
|
||||
}, 2000);
|
||||
});
|
||||
// app.use( (req,res,next) => {
|
||||
// console.log("slow...");
|
||||
// setTimeout(() => {
|
||||
// next();
|
||||
// }, 2000);
|
||||
// });
|
||||
|
||||
const OK = {status: "ok"};
|
||||
const NOT_FOUND = {status: "error", error: "not found"};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue