Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
f3817f69
Unverified
Commit
f3817f69
authored
Feb 03, 2021
by
Attila Gazso
Committed by
GitHub
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: conditionally enable chequebook endpoints (#1190)
Fixes #1188
parent
307b154f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
router.go
pkg/debugapi/router.go
+11
-11
No files found.
pkg/debugapi/router.go
View file @
f3817f69
...
@@ -130,20 +130,20 @@ func (s *server) setupRouting() {
...
@@ -130,20 +130,20 @@ 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
),
})
})
router
.
Handle
(
"/chequebook/cheque"
,
jsonhttp
.
MethodHandler
{
router
.
Handle
(
"/chequebook/cheque"
,
jsonhttp
.
MethodHandler
{
"GET"
:
http
.
HandlerFunc
(
s
.
chequebookAllLastHandler
),
"GET"
:
http
.
HandlerFunc
(
s
.
chequebookAllLastHandler
),
})
})
router
.
Handle
(
"/chequebook/cashout/{peer}"
,
jsonhttp
.
MethodHandler
{
router
.
Handle
(
"/chequebook/cashout/{peer}"
,
jsonhttp
.
MethodHandler
{
"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"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment