Skip to content

Instantly share code, notes, and snippets.

@talesmgodois
Last active November 24, 2020 14:38
Show Gist options
  • Save talesmgodois/39911779be7d0e083a1eedd7f7862f68 to your computer and use it in GitHub Desktop.
Save talesmgodois/39911779be7d0e083a1eedd7f7862f68 to your computer and use it in GitHub Desktop.
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
getHello(): string {
return this.appService.getHello();
}
}
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
getHello(): string {
return 'Hello World!';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment