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.
Update the state of an [[Internship]] WITHOUT the constraint of the InternshipStatusTypeMachine transition function
Return all the Approved internships
Return the list of all internships inserted by companies in which owners contain the given ownerId
Return all the NotApproved internships
Given a [[InternshipsStatusType]] return all the available states
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.
Update the state of an [[Internship]] following the InternshipStatusTypeMachine transition function
Generated using TypeDoc
The [[Internship]] controller