Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class UsersController {
- @authorize.public() // accessible to public
- @route.post("")
- async save(data: User) {
- // implementation
- }
- @authorize.role("Admin") // accessible only to Admin
- @route.get("")
- list(offset: number, limit: number) {
- // implementation
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement