routing-controllers
Version:
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.
23 lines (22 loc) • 673 B
TypeScript
import { ControllerOptions } from '../../decorator-options/ControllerOptions';
/**
* Controller metadata used to storage information about registered controller.
*/
export interface ControllerMetadataArgs {
/**
* Indicates object which is used by this controller.
*/
target: Function;
/**
* Base route for all actions registered in this controller.
*/
route: string;
/**
* Controller type. Can be default or json-typed. Json-typed controllers operate with json requests and responses.
*/
type: 'default' | 'json';
/**
* Options that apply to all controller actions.
*/
options: ControllerOptions;
}