UNPKG

nralcm

Version:

This is a framework based on NodeJs to manage rest api request lifecycle

9 lines (8 loc) 363 B
import "reflect-metadata/Reflect"; import { HttpMethod } from "../common"; /** * Route Decorator to define routes in controller * @param httpMethod HttpMethod of api * @param route route string for api method */ export declare function Route(httpMethod: HttpMethod, route?: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;