import { AppController } from "https://deno.land/x/deno_nest@v3.6.1/modules/hono/example/app.controller.ts";
Constructors
new
AppController(appService: AppService)Methods
bool()
error()
hello()
helloName(name: string)
originContext(res: Response)
query(name: string)
This example will auto validate the body, because the SaveDto used the class_validator
decorators.
If you set SaveDto
to any
or a interface, it will not work.
validQuery(query: QueryDto)
This example will work, because the QueryDto has the@Property()
decorator.
This example will not work, because the QueryWithoutPropDto does not have the@Property()
decorator.