Files
homarr/apps/nestjs/src/app.controller.ts
homarr-renovate[bot] fd5fe529e8 chore(deps): update dependency @swc/core to ^1.4.2 (#175)
* 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>
2024-03-04 20:32:23 +01:00

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();
}
}