UNPKG

559 BTypeScriptView Raw
1import { ControllerOptions } from '../decorator-options/ControllerOptions';
2/**
3 * Defines a class as a JSON controller. If JSON controller is used, then all controller actions will return
4 * a serialized json data, and its response content-type always will be application/json.
5 *
6 * @param baseRoute Extra path you can apply as a base route to all controller actions
7 * @param options Extra options that apply to all controller actions
8 */
9export declare function JsonController(baseRoute?: string, options?: ControllerOptions): (object: Function) => void;