Last active
May 8, 2022 15:40
-
-
Save minhntm/3452c3702b525d1cdef3c3907c742878 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
@Post() | |
@UseGuards(PermissionsGuard) | |
@CheckPermissions([PermissionAction.CREATE, "Invoice"]) // "Invoice" is the value in name column of objects table | |
async create( | |
// create invoice params | |
): Promise<InvoiceResponseDto> { | |
// create invoice logic | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment