Skip to content

Instantly share code, notes, and snippets.

@talesmgodois
Last active September 29, 2020 13:14
Show Gist options
  • Save talesmgodois/77a55195189b41109b72062b38e290ba to your computer and use it in GitHub Desktop.
Save talesmgodois/77a55195189b41109b72062b38e290ba to your computer and use it in GitHub Desktop.
import { Get, Controller, Render } from '@nestjs/common';
import { AppService } from './app.service';
@Controller('cats')
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
public async index() {
const message = this.appService.getHello();
return { message };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment