1 | import 'reflect-metadata';
|
2 | export declare const INCEPTUM_WEB_METADATA_KEY = "inceptum-web";
|
3 | export interface InceptumWebRouteMetadata {
|
4 | verb?: string;
|
5 | path: string;
|
6 | methodName: string;
|
7 | }
|
8 | export declare class InceptumWebMetadata {
|
9 | routes: InceptumWebRouteMetadata[];
|
10 | }
|
11 | export declare function hasWebDecoratorMetadata(target: any): boolean;
|
12 | export declare function getWebDecoratorMetadata(target: any): InceptumWebMetadata;
|
13 | export declare namespace WebDecorator {
|
14 | function Get(path: string): (target: any, key: string) => void;
|
15 | function Post(path: string): (target: any, key: string) => void;
|
16 | function Put(path: string): (target: any, key: string) => void;
|
17 | function Delete(path: string): (target: any, key: string) => void;
|
18 | function Route(verb: string, path: string): (target: any, key: string) => void;
|
19 | }
|