Last active
May 17, 2016 08:58
-
-
Save pleerock/6e253df1367b0a237692cd0b8b244bf8 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
@JsonController() | |
export class BlogController { | |
@Get("/blogs") | |
getAll() { | |
if (accessAllowed) | |
throw new ForbiddenError("Access is denied"); | |
return [ | |
{ id: 1, name: "Blog " + filter.keyword }, | |
{ id: 2, name: "Blog " + filter.keyword } | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment