Browse Source

past year monthly value chart waterflow is ready.

master
sp 5 years ago
parent
commit
0131427b9e
3 changed files with 14 additions and 0 deletions
  1. +12
    -0
      apiV1ChartPastYearMonthly.go
  2. +0
    -0
      apiV1ChartTypeOfLoans.go
  3. +2
    -0
      apiv1.go

+ 12
- 0
apiV1ChartPastYearMonthly.go View File

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 View File


+ 2
- 0
apiv1.go View File

{"*", "logout", apiV1Logout}, {"*", "logout", apiV1Logout},
{"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans}, {"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans}, {"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/past-year-monthly", apiV1ChartPastYearMonthly},
{"GET", "login", apiV1DumpRequest}, {"GET", "login", apiV1DumpRequest},
} }
} else { //production } else { //production
{"*", "logout", apiV1Logout}, {"*", "logout", apiV1Logout},
{"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans}, {"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans}, {"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans},
{"GET", "chart/past-year-monthly", apiV1ChartPastYearMonthly},
{"GET", "login", apiV1EmptyResponse}, {"GET", "login", apiV1EmptyResponse},
} }
} }

Loading…
Cancel
Save