aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-10-26 10:50:56 +0700
committerShulhan <ms@kilabit.info>2022-10-26 10:50:56 +0700
commit07092174c8cdfd7206a319da999c0112c36cb7ef (patch)
tree418a6aa8e72a4def5257a7915c2e7a3f8e967922
parentbc1c453eb8a3c8b5bac406c5c4f09af06034247c (diff)
downloadduitku-07092174c8cdfd7206a319da999c0112c36cb7ef.tar.xz
all: export the HTTP path
This is to make the consumer of the module able to mock the endpoint using the known path.
-rw-r--r--client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.go b/client.go
index f9dc949..da15421 100644
--- a/client.go
+++ b/client.go
@@ -14,7 +14,7 @@ import (
)
const (
- pathDisbursementListBank = `/disbursement/listBank`
+ PathDisbursementListBank = `/disbursement/listBank`
)
type Client struct {
@@ -54,7 +54,7 @@ func (cl *Client) DisbursementListBank() (banks []Bank, err error) {
resBody []byte
)
- httpRes, resBody, err = cl.PostJSON(pathDisbursementListBank, nil, req)
+ httpRes, resBody, err = cl.PostJSON(PathDisbursementListBank, nil, req)
if err != nil {
return nil, fmt.Errorf(`%s: %w`, logp, err)
}