arnaucube
arnaucube/blockchainIDsystemPublic Self-hosted repository
blockchainIDsystem/clientApp/restRoutes.go
clientApp/restRoutes.goRaw
 1package main
 2
 3type Routes []Route
 4
 5var routes = Routes{
 6	Route{
 7		"Index",
 8		"GET",
 9		"/",
10		Index,
11	},
12	Route{
13		"GetServer",
14		"GET",
15		"/getserver",
16		GetServer,
17	},
18	Route{
19		"IDs",
20		"GET",
21		"/ids",
22		IDs,
23	},
24	Route{
25		"NewID",
26		"GET",
27		"/newid",
28		NewID,
29	},
30	Route{
31		"BlindAndSendToSign",
32		"GET",
33		"/blindandsendtosign/{pubK}",
34		BlindAndSendToSign,
35	},
36	Route{
37		"Verify",
38		"GET",
39		"/verify/{pubK}",
40		Verify,
41	},
42}