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		"IDs",
14		"GET",
15		"/ids",
16		IDs,
17	},
18	Route{
19		"NewID",
20		"GET",
21		"/newid",
22		NewID,
23	},
24	Route{
25		"BlindAndSendToSign",
26		"GET",
27		"/blindandsendtosign/{pubK}",
28		BlindAndSendToSign,
29	},
30	Route{
31		"Verify",
32		"GET",
33		"/verify/{pubK}",
34		Verify,
35	},
36}