Created
April 26, 2018 19:15
-
-
Save kazagkazag/5c1beac9a9864dcdac08e395ff6b05ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.get("/users/:id/articles", (request, response) => { | |
const delay = faker.random.number({min: 400, max: 1000}); | |
// delay response with fake articles | |
setTimeout(() => { | |
response.send(200, getArticlesForUser()); | |
}, delay); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment