Skip to content

Commit 46e7144

Browse files
committed
Adding go server
1 parent 8a3a07b commit 46e7144

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

torbotserver/main.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package main
2+
3+
import (
4+
"github.com/go-martini/martini"
5+
)
6+
7+
func getLinksHandler() string {
8+
return "GET LINKS"
9+
}
10+
11+
func getInfoHandler() string {
12+
return "GET INFO"
13+
}
14+
15+
func main() {
16+
m := martini.Classic()
17+
m.Get("/links", getLinksHandler)
18+
m.Get("/info", getInfoHandler)
19+
m.Run()
20+
}

0 commit comments

Comments
 (0)