Skip to content

Instantly share code, notes, and snippets.

@fancyvanilla
Created February 6, 2025 17:51
Show Gist options
  • Save fancyvanilla/8247aca5cdad6038638f8a4b01fda1af to your computer and use it in GitHub Desktop.
Save fancyvanilla/8247aca5cdad6038638f8a4b01fda1af to your computer and use it in GitHub Desktop.
A Gist created from a code selection
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