Create the controller that handles routes
The companies repository
The express application used to register a new route for this controller
The companies repository
Indicates if the authentication has been enabled in this controller
The express router
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 the list of companies of the given userId
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.
Generated using TypeDoc
The Company controller