Commit f3817f69 authored by Attila Gazso's avatar Attila Gazso Committed by GitHub

fix: conditionally enable chequebook endpoints (#1190)

Fixes #1188
parent 307b154f
...@@ -130,7 +130,6 @@ func (s *server) setupRouting() { ...@@ -130,7 +130,6 @@ func (s *server) setupRouting() {
router.Handle("/chequebook/withdraw", jsonhttp.MethodHandler{ router.Handle("/chequebook/withdraw", jsonhttp.MethodHandler{
"POST": http.HandlerFunc(s.chequebookWithdrawHandler), "POST": http.HandlerFunc(s.chequebookWithdrawHandler),
}) })
}
router.Handle("/chequebook/cheque/{peer}", jsonhttp.MethodHandler{ router.Handle("/chequebook/cheque/{peer}", jsonhttp.MethodHandler{
"GET": http.HandlerFunc(s.chequebookLastPeerHandler), "GET": http.HandlerFunc(s.chequebookLastPeerHandler),
...@@ -144,6 +143,7 @@ func (s *server) setupRouting() { ...@@ -144,6 +143,7 @@ func (s *server) setupRouting() {
"GET": http.HandlerFunc(s.swapCashoutStatusHandler), "GET": http.HandlerFunc(s.swapCashoutStatusHandler),
"POST": http.HandlerFunc(s.swapCashoutHandler), "POST": http.HandlerFunc(s.swapCashoutHandler),
}) })
}
baseRouter.Handle("/", web.ChainHandlers( baseRouter.Handle("/", web.ChainHandlers(
httpaccess.NewHTTPAccessLogHandler(s.Logger, logrus.InfoLevel, s.Tracer, "debug api access"), httpaccess.NewHTTPAccessLogHandler(s.Logger, logrus.InfoLevel, s.Tracer, "debug api access"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment