feat: doc for app controller

This commit is contained in:
GitBluub
2023-09-20 03:40:13 +02:00
committed by Bluub
parent b3117886cf
commit 979c27c087

View File

@@ -1,11 +1,13 @@
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { ApiOkResponse } from '@nestjs/swagger';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
@ApiOkResponse({ description: 'Return a hello world message, used as a health route' })
getHello(): string {
return this.appService.getHello();
}