1 | import { HandlerOptions } from '../decorator-options/HandlerOptions';
|
2 | import { ActionType } from '../metadata/types/ActionType';
|
3 | /**
|
4 | * Registers an action to be executed when request with specified method comes on a given route.
|
5 | * Must be applied on a controller action.
|
6 | */
|
7 | export declare function Method(method: ActionType, route?: RegExp, options?: HandlerOptions): Function;
|
8 | /**
|
9 | * Registers an action to be executed when request with specified method comes on a given route.
|
10 | * Must be applied on a controller action.
|
11 | */
|
12 | export declare function Method(method: ActionType, route?: string, options?: HandlerOptions): Function;
|