Last active
May 17, 2016 06:49
-
-
Save pleerock/947b0673712b6f7a64e0a578ac6b32ae to your computer and use it in GitHub Desktop.
routing-controllers > article1 > snippet1
This file contains 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 {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