| ... | @@ -6,9 +6,9 @@ User-folder follows the usual logic for the most part, containing a controller, |
... | @@ -6,9 +6,9 @@ User-folder follows the usual logic for the most part, containing a controller, |
|
|
|
|
|
|
|
Contains three routes, which are all prefixed with url `user`.
|
|
Contains three routes, which are all prefixed with url `user`.
|
|
|
|
|
|
|
|
`@UsePipes(new ValidationPipe())` validates the request's body, and is located in the `shared` folder.
|
|
[`@UsePipes(new ValidationPipe())`](./shared#validationpipets) validates the request's body, and is located in the `shared` folder.
|
|
|
|
|
|
|
|
`@UseGuards(new AuthGuard())` validates the user's token sent in the authorization header, and is also located in the `shared` folder.
|
|
[`@UseGuards(new AuthGuard())`](./shared#authguardts) validates the user's token sent in the authorization header, and is also located in the `shared` folder.
|
|
|
|
|
|
|
|
### register, POST /user/register
|
|
### register, POST /user/register
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |