Created
May 11, 2020 16:48
-
-
Save coderkan/2df2ab5c4dbb6a4e506f4db3a3cbe799 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
if (url.endsWith("/employes") && method === "POST") { | |
const { body } = req.clone(); | |
// assign a new uuid to new employee | |
body.id = uuidv4(); | |
return of(new HttpResponse({ status: 200, body })).pipe(delay(500)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment