* chore(deps): update dependency @swc/core to ^1.4.2 * ci: fix typecheck issue --------- Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
19 lines
408 B
TypeScript
19 lines
408 B
TypeScript
import { Controller, Get, Inject } from "@nestjs/common";
|
|
|
|
import { AppService } from "./app.service";
|
|
|
|
@Controller()
|
|
export class AppController {
|
|
constructor(@Inject(AppService) private readonly appService: AppService) {}
|
|
|
|
@Get()
|
|
async getHello(): Promise<string> {
|
|
return await this.appService.getHello();
|
|
}
|
|
|
|
@Get("/random")
|
|
getRandom(): string {
|
|
return Math.random().toString();
|
|
}
|
|
}
|