Class Decorator Function
A collection of endpoints. Every endpoints in this will apply the given metadata. Add the class Symbols to the application components array (similar to angular module) to apply them to an application
Since 1.7 Property Decorator Function Works basically like the @Endpoint decorator, but only DELETE requests will be mapped to it. this will enable duplicate routes on different method types
Property Decorator Function
Creates an endpoint of a function The decorated function need the following index signature otherwise it will throw an error (request: Request, response: Response, next?: Function) (also an index signature fore middlewares) If you pass the next-function and call it, it will get the next function from the route middlewares and abort the current execution
Since 1.7 Property Decorator Function Works basically like the @Endpoint decorator, but only GET requests will be mapped to it. this will enable duplicate routes on different method types
Class Decorator Function
Allows to inject dependencies into objects
Class Decorator Function
A module gathers components and uses an own store for shared instances dependency injection. Every not provided dependency will be loaded from the application instance store
Since 1.7 Property Decorator Function Works basically like the @Endpoint decorator, but only PATCH requests will be mapped to it. this will enable duplicate routes on different method types
Since 1.7 Property Decorator Function Works basically like the @Endpoint decorator, but only POST requests will be mapped to it. this will enable duplicate routes on different method types
Since 1.7 Property Decorator Function Works basically like the @Endpoint decorator, but only PUT requests will be mapped to it. this will enable duplicate routes on different method types
Class Decorator Function
Creates a runner upon a class. No need to create an object and to serve manually
@Application({ contentType: 'application/json', server: { port: 3000, maxConnections: 10, timeout: 500, keepAliveTimeout: 500 }, components: [TestComponent], middleware: [(request: Request, response: Response) => { }] }) class Test {}