Created
February 6, 2025 17:51
-
-
Save fancyvanilla/8247aca5cdad6038638f8a4b01fda1af to your computer and use it in GitHub Desktop.
A Gist created from a code selection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Controller, Get } from '@nestjs/common'; | |
import { ApiOkResponse } from '@nestjs/swagger'; | |
import { AppService } from './app.service'; | |
import { Public } from './common/decorators/public.decorator'; | |
@Controller() | |
export class AppController { | |
constructor(private readonly appService: AppService) {} | |
@ApiOkResponse({ description: "Returns 'Hello World'" }) | |
@Public() | |
@Get() | |
getHello(): string { | |
return this.appService.getHello(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment