Create the controller that handles routes
The users repository
The express application used to register a new route for this controller
Indicates if the authentication has been enabled in this controller
The express router
The users repository
The collection name
Register this controller routes to the global express application
Enable JWT token verification. Every method called after this call will use authentication
A user scope can be specified using a scope middleware.
Attach to the current route the create operation
A user scope can be specified using a scope middleware.
Attach to the current route the CRUD operations.
A user scope can be specified using a scope middleware.
Delete operation required Admin scope by default in all collection
Attach to the current route the delete operation
A user scope can be specified using a scope middleware.
Return all users with role matching al least one of the given roles
Return all the User with role Professor matching the given search string
Allow to use middleware for all methods
The middleware to use for all methods
Attach to the current route the read all and ready by id operation
A user scope can be specified using a scope middleware.
Attach to the current route the update operation
A user scope can be specified using a scope middleware.
Allow the the user specified in the token to update its onw user information
Generated using TypeDoc
The User controller