Last active
September 29, 2020 13:14
-
-
Save talesmgodois/77a55195189b41109b72062b38e290ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { 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