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

fix: conditionally enable chequebook endpoints (#1190)

Fixes #1188
parent 307b154f
......@@ -130,20 +130,20 @@ func (s *server) setupRouting() {
router.Handle("/chequebook/withdraw", jsonhttp.MethodHandler{
"POST": http.HandlerFunc(s.chequebookWithdrawHandler),
})
}
router.Handle("/chequebook/cheque/{peer}", jsonhttp.MethodHandler{
"GET": http.HandlerFunc(s.chequebookLastPeerHandler),
})
router.Handle("/chequebook/cheque/{peer}", jsonhttp.MethodHandler{
"GET": http.HandlerFunc(s.chequebookLastPeerHandler),
})
router.Handle("/chequebook/cheque", jsonhttp.MethodHandler{
"GET": http.HandlerFunc(s.chequebookAllLastHandler),
})
router.Handle("/chequebook/cheque", jsonhttp.MethodHandler{
"GET": http.HandlerFunc(s.chequebookAllLastHandler),
})
router.Handle("/chequebook/cashout/{peer}", jsonhttp.MethodHandler{
"GET": http.HandlerFunc(s.swapCashoutStatusHandler),
"POST": http.HandlerFunc(s.swapCashoutHandler),
})
router.Handle("/chequebook/cashout/{peer}", jsonhttp.MethodHandler{
"GET": http.HandlerFunc(s.swapCashoutStatusHandler),
"POST": http.HandlerFunc(s.swapCashoutHandler),
})
}
baseRouter.Handle("/", web.ChainHandlers(
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