REST controller/route and dependency injection decorators for Express-based REST applications
- Defines a top-level class contrainer for REST methods
- Takes in a type (which is the class being defined) and a path that will prefix all REST methods contained in the class
- Defines a GET method at the provided path
- Defines a POST method at the provided path
- Defines a PUT method at the provided path
- Defines a DELETE method at the provided path
- Signals that the given class member should be initialized via injection
- Provides a single method called register() that takes in the Express router
- All @Http* and @Controller decorators are automatically registered with the router