UNPKG

496 BTypeScriptView Raw
1import { HandlerOptions } from '../decorator-options/HandlerOptions';
2/**
3 * Registers an action to be executed when POST request comes on a given route.
4 * Must be applied on a controller action.
5 */
6export declare function Post(route?: RegExp, options?: HandlerOptions): Function;
7/**
8 * Registers an action to be executed when POST request comes on a given route.
9 * Must be applied on a controller action.
10 */
11export declare function Post(route?: string, options?: HandlerOptions): Function;