import { Controller, Get, Inject } from "@nestjs/common"; import { AppService } from "./app.service"; @Controller() export class AppController { // @ts-expect-error decorators are not correctly handled yet constructor(@Inject(AppService) private readonly appService: AppService) {} @Get() async getHello(): Promise { return await this.appService.getHello(); } @Get("/random") getRandom(): string { return Math.random().toString(); } }