mirror of
https://github.com/arnaucube/blockchainIDsystem.git
synced 2026-02-07 02:56:43 +01:00
25 lines
239 B
Go
Executable File
25 lines
239 B
Go
Executable File
package main
|
|
|
|
type Routes []Route
|
|
|
|
var routes = Routes{
|
|
Route{
|
|
"Index",
|
|
"GET",
|
|
"/",
|
|
Index,
|
|
},
|
|
Route{
|
|
"GetPeers",
|
|
"GET",
|
|
"/peers",
|
|
GetPeers,
|
|
},
|
|
Route{
|
|
"GetBlockchain",
|
|
"GET",
|
|
"/blockchain",
|
|
GetBlockchain,
|
|
},
|
|
}
|