Function: Post()
Function: Post()
function Post(path, options?): MethodDecorator;
A method decorator for defining HTTP POST routes.
Parameters
path
The route path for the POST endpoint.
string
| string
[]
options?
Optional configuration for the route.
Returns
MethodDecorator
A method decorator configured for a POST route.
Example
@Post('/create')
createResource() {
return 'Resource created';
}