Skip to content

Instantly share code, notes, and snippets.

@pleerock
Last active May 17, 2016 06:49
Show Gist options
  • Save pleerock/947b0673712b6f7a64e0a578ac6b32ae to your computer and use it in GitHub Desktop.
Save pleerock/947b0673712b6f7a64e0a578ac6b32ae to your computer and use it in GitHub Desktop.
routing-controllers > article1 > snippet1
import {Controller, Get, Post, Put, Patch, Delete} from "routing-controllers";
@Controller()
export class BlogController {
@Get("/blogs")
getAll() {
return "Hello Blogs";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment