Post: (path: string, options?: { contentType: string }) => MethodDecorator = ...
Type declaration
- (path: string, options?: { contentType: string }): MethodDecorator
Parameters
- path: string
Optional
options: { contentType: string }
Returns MethodDecorator
Decorator
Post
Description
A method decorator for defining a POST route.