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