|
|
|
@@ -33,6 +33,8 @@ func setupApiV1Handler() []apiV1HandlerMap { |
|
|
|
{"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans}, |
|
|
|
{"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans}, |
|
|
|
{"GET", "chart/past-year-monthly", apiV1ChartPastYearMonthly}, |
|
|
|
{"GET", "chart/recent-10-loans", apiV1ChartRecent10Loans}, |
|
|
|
{"GET", "chart/top-broker", apiV1ChartTopBroker}, |
|
|
|
{"GET", "login", apiV1DumpRequest}, |
|
|
|
} |
|
|
|
} else { //production |
|
|
|
@@ -42,6 +44,8 @@ func setupApiV1Handler() []apiV1HandlerMap { |
|
|
|
{"GET", "chart/type-of-loans", apiV1ChartTypeOfLoans}, |
|
|
|
{"GET", "chart/amount-of-loans", apiV1ChartTypeOfLoans}, |
|
|
|
{"GET", "chart/past-year-monthly", apiV1ChartPastYearMonthly}, |
|
|
|
{"GET", "chart/recent-10-loans", apiV1ChartRecent10Loans}, |
|
|
|
{"GET", "chart/top-broker", apiV1ChartTopBroker}, |
|
|
|
{"GET", "login", apiV1EmptyResponse}, |
|
|
|
} |
|
|
|
} |