|
|
|
@@ -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}, |
|
|
|
} |
|
|
|
} |