| ... | @@ -6,7 +6,7 @@ Game-folder follows the usual logic containing a controller, a service, a DTO an |
... | @@ -6,7 +6,7 @@ Game-folder follows the usual logic containing a controller, a service, a DTO an |
|
|
|
|
|
|
|
Contains 13 routes, which are all prefixed with url `game`.
|
|
Contains 13 routes, which are all prefixed with url `game`.
|
|
|
|
|
|
|
|
Uses some decorators as explained in the [User](user) page, but it also has some new faces:
|
|
Uses some decorators as explained in the [User](./user) page, but it also has some new faces:
|
|
|
|
|
|
|
|
`@Roles('gameperson-role')` validates the user's role from the token. Returns 403 Unauthorized, if the user does not match the requirements. The decorator needs the game's UUID as a parameter in the URL. Stored in the `shared` folder.
|
|
`@Roles('gameperson-role')` validates the user's role from the token. Returns 403 Unauthorized, if the user does not match the requirements. The decorator needs the game's UUID as a parameter in the URL. Stored in the `shared` folder.
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |