Bläddra i källkod

past year monthly value chart waterflow is ready.

master
sp 4 år sedan
förälder
incheckning
0131427b9e
3 ändrade filer med 14 tillägg och 0 borttagningar
  1. +12
    -0
      apiV1ChartPastYearMonthly.go
  2. +0
    -0
      apiV1ChartTypeOfLoans.go
  3. +2
    -0
      apiv1.go

+ 12
- 0
apiV1ChartPastYearMonthly.go Visa fil

@@ -0,0 +1,12 @@
package main

import (
"biukop.com/sfm/loan"
"net/http"
)

func apiV1ChartPastYearMonthly(w http.ResponseWriter, r *http.Request, ss *loan.Session) {
data := loan.PastYearMonthly()
//send out
apiV1SendJson(data, w, r, ss)
}

chartTypeOfLoans.go → apiV1ChartTypeOfLoans.go Visa fil


+ 2
- 0
apiv1.go Visa fil

@@ -32,6 +32,7 @@ func setupApiV1Handler() []apiV1HandlerMap {
{"*", "logout", apiV1Logout},
{"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/past-year-monthly", apiV1ChartPastYearMonthly},
{"GET", "login", apiV1DumpRequest},
}
} else { //production
@@ -40,6 +41,7 @@ func setupApiV1Handler() []apiV1HandlerMap {
{"*", "logout", apiV1Logout},
{"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/past-year-monthly", apiV1ChartPastYearMonthly},
{"GET", "login", apiV1EmptyResponse},
}
}

Laddar…
Avbryt
Spara