can get a map of month to cost
doesnt concern itself with years yet...
This commit is contained in:
@@ -24,7 +24,9 @@ func addRoutes(sm *http.ServeMux, server *Server, staticFiles string) {
|
||||
"health": "/healthz",
|
||||
"list": "/api/v0/list/",
|
||||
"tranx": "/api/v0/tranx/",
|
||||
"fake": "/fake/",
|
||||
"cost": "/api/v0/costpermonth/",
|
||||
|
||||
"fake": "/fake/",
|
||||
}
|
||||
|
||||
if staticFiles == "" {
|
||||
@@ -76,5 +78,6 @@ func addRoutes(sm *http.ServeMux, server *Server, staticFiles string) {
|
||||
sm.HandleFunc(prefix["health"], server.health)
|
||||
sm.HandleFunc(prefix["list"], server.listUsers)
|
||||
sm.HandleFunc(prefix["tranx"], server.tranx)
|
||||
sm.HandleFunc(prefix["cost"], server.costPerMonth)
|
||||
sm.HandleFunc(prefix["fake"], server.fakeSetup)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user