UNPKG

@methodus/server

Version:
7 lines (6 loc) 369 B
import 'reflect-metadata'; /** the MethodConfig decorator registers the controller as a router * @param {string} name - the identifier of the controller in the resolver. * @param {Function[]} middlewares - an array of middlewares to apply to this controller} */ export declare function MethodConfig(name: string, middlewares?: any[]): (target: any) => void;