Skip to content

Instantly share code, notes, and snippets.

@tpjnorton
Created November 9, 2021 12:55
Show Gist options
  • Save tpjnorton/36ef6276e6bf15b27dad5246784992bb to your computer and use it in GitHub Desktop.
Save tpjnorton/36ef6276e6bf15b27dad5246784992bb to your computer and use it in GitHub Desktop.
Simple NestJS controller taken from docs
import { Controller, Get } from '@nestjs/common';
@Controller('cats')
export class CatsController {
@Get()
findAll(): string {
return 'This action returns all cats';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment