app.controller.ts 274 B

123456789101112
  1. import { Controller, Get } from '@nestjs/common';
  2. import { AppService } from './app.service';
  3. @Controller()
  4. export class AppController {
  5. constructor(private readonly appService: AppService) {}
  6. @Get()
  7. getHello(): string {
  8. return this.appService.getHello();
  9. }
  10. }