@ark7/router
Version:
Ark7 Router layer framework.
11 lines (10 loc) • 306 B
TypeScript
import * as Router from 'koa-router';
/**
* Options to define a handler.
*/
export interface SubControllerOptions {
path?: string;
name?: string;
middlewares?: Router.IMiddleware[];
}
export declare function SubController(options?: SubControllerOptions): PropertyDecorator & MethodDecorator;