src/app.controller.ts
Methods |
| getHello |
getHello()
|
Decorators :
@Get()
|
|
Defined in src/app.controller.ts:9
|
|
Returns :
string
|
import { Controller, Get } from "@nestjs/common";
import { AppService } from "./app.service";
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
getHello(): string {
return this.appService.getHello();
}
}