import { AppController } from "https://deno.land/x/deno_nest@v3.5.0/modules/hono/example/app.controller.ts";
Constructors
new
AppController(appService: AppService)Methods
beforeApplicationShutdown(signal?: string | undefined): void | Promise<void>
bool()
error()
hello()
helloName(name: string)
onModuleDestroy(): void | Promise<void>
onModuleInit(): void | Promise<void>
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.