Created
May 11, 2020 16:47
-
-
Save coderkan/a0d60e8247debed875ef573e43d2756a 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
private _employeeJsonPath = "assets/employes.json"; | |
const { url, method } = req; | |
if (url.endsWith("/employes") && method === "GET") { | |
req = req.clone({ | |
url: this._employeeJsonPath, | |
}); | |
return next.handle(req).pipe(delay(500)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment