| ... | ... | @@ -79,7 +79,7 @@ The AuthGuard located in shared folder verifies the user's token. If the validat |
|
|
|
```typescript
|
|
|
|
@Post('example')
|
|
|
|
@UseGuards(new AuthGuard())
|
|
|
|
async newGame(@User('id') userId, @Body() data) {
|
|
|
|
async exampleroute(@User('id') userId, @Body() data) {
|
|
|
|
return this.exampleservice.examplefunction(userId, body);
|
|
|
|
}
|
|
|
|
```
|
| ... | ... | |
| ... | ... | |