-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.go
39 lines (37 loc) · 819 Bytes
/
routes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package main
import (
"github.com/harrydrippin/go-quick-link/server"
)
var routes = server.Routes{
server.Route{
Name: "Health",
Method: "GET",
Path: "/health",
HandlerFunc: HandlerHealthCheck,
},
server.Route{
Name: "Go",
Method: "GET",
PathPrefix: "/go",
HandlerFunc: HandlerGo,
},
server.Route{
Name: "Get Quick Links",
Method: "GET",
Path: "/manage",
HandlerFunc: HandlerGetQuickLinks,
},
server.Route{
Name: "Set Quick Link",
Method: "POST",
Path: "/manage",
HandlerFunc: HandlerSetQuickLinks,
},
server.Route{
Name: "Delete Quick Link",
Method: "DELETE",
Path: "/manage",
HandlerFunc: HandlerDeleteQuickLinks,
},
// TODO(@harry): Support Batch Import / Export by JSON
}