diff options
| author | Shulhan <ms@kilabit.info> | 2022-10-26 10:50:56 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-10-26 10:50:56 +0700 |
| commit | 07092174c8cdfd7206a319da999c0112c36cb7ef (patch) | |
| tree | 418a6aa8e72a4def5257a7915c2e7a3f8e967922 | |
| parent | bc1c453eb8a3c8b5bac406c5c4f09af06034247c (diff) | |
| download | duitku-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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |
