express-decorated-router
Version:
Define Express routes using TypeScript decorators
8 lines (7 loc) • 309 B
TypeScript
import { RouterOptions } from 'express';
/**
* Register this class as a controller
* @param root The root path for this controller
* @param options Options passed to the Express router initialisation function.
*/
export declare function Controller(root?: string, options?: RouterOptions): ClassDecorator;