honestjs
Version:
HonestJS - a modern web framework built on top of Hono
10 lines (9 loc) • 465 B
TypeScript
import type { ControllerOptions } from '../interfaces';
/**
* Decorator that marks a class as a controller
* Controllers are responsible for handling incoming requests and returning responses
* @param route - The base route for all endpoints in this controller
* @param options - Configuration options for the controller
* @returns A class decorator function
*/
export declare function Controller(route?: string, options?: ControllerOptions): ClassDecorator;