Operation
@tsed/schema
Usage
typescript
import { Operation } from "@tsed/schema";
See /packages/specs/schema/src/types/decorators/operations/operation.ts.
Overview
ts
function Operation(method: string, path: string, ...args: any[]): RouteChainedDecorators;
export function Operation(...args: any[]): RouteChainedDecorators;
Description
Describe a new route with a method and path.
typescript
@Controller('/')
export class Ctrl {
@Route('GET', '/')
get() { }
}