| ... | @@ -159,7 +159,7 @@ Gameperson decorators works exactly like [UserDecorator](./user#userdecoratorts) |
... | @@ -159,7 +159,7 @@ Gameperson decorators works exactly like [UserDecorator](./user#userdecoratorts) |
|
|
|
|
|
|
|
```typescript
|
|
```typescript
|
|
|
@Post('example')
|
|
@Post('example')
|
|
|
@Roles('admin)
|
|
@Roles('admin')
|
|
|
async exampleroute(@GamePerson() gamePerson, @Body() data) {
|
|
async exampleroute(@GamePerson() gamePerson, @Body() data) {
|
|
|
return this.exampleservice.examplefunction(gamePerson, body);
|
|
return this.exampleservice.examplefunction(gamePerson, body);
|
|
|
}
|
|
}
|
| ... | |
... | |
| ... | | ... | |