merge eva repos into single repository
This commit is contained in:
commit
200dd620ae
52 changed files with 2281 additions and 0 deletions
58
backend/routes.go
Normal file
58
backend/routes.go
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
package main
|
||||
|
||||
import "net/http"
|
||||
|
||||
type Route struct {
|
||||
Name string
|
||||
Method string
|
||||
Pattern string
|
||||
Handler http.HandlerFunc
|
||||
}
|
||||
|
||||
|
||||
type Routes []Route
|
||||
|
||||
var IndexRoutes = Routes{
|
||||
Route{
|
||||
"Index",
|
||||
"GET",
|
||||
"/",
|
||||
Index,
|
||||
},
|
||||
Route{
|
||||
"SpaceDataIndex",
|
||||
"GET",
|
||||
"/spaces",
|
||||
SpaceDataIndex,
|
||||
},
|
||||
Route{
|
||||
"SpaceUrlIndex",
|
||||
"GET",
|
||||
"/urls",
|
||||
SpaceUrlIndex,
|
||||
},
|
||||
Route{
|
||||
"CalendarIndex",
|
||||
"GET",
|
||||
"/calendar",
|
||||
CalendarIndex,
|
||||
},
|
||||
Route{
|
||||
"SpaceUrlAdd",
|
||||
"POST",
|
||||
"/urls",
|
||||
SpaceUrlAdd,
|
||||
},
|
||||
Route{
|
||||
"SpaceUrlUpdate",
|
||||
"PUT",
|
||||
"/urls/{SharedSecret}",
|
||||
SpaceUrlUpdate,
|
||||
},
|
||||
Route{
|
||||
"RefreshData",
|
||||
"GET",
|
||||
"/refresh",
|
||||
refreshData,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue