Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Oct 2, 2023
1 parent 0954825 commit 656dad6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/shared/restSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ export const API = {
}
},
wallet: ({
get: async () => await fetch(`${API.BASE_URL}wallet/get`, {
get: async () => await fetch(`${API.BASE_URL}wallet/`, {
headers: headers(API.getToken())
})
.then(json<Wallet>())
.catch(reject),
requestPayout: async (amount: number) => await fetch(`${API.BASE_URL}wallet/request-payment`, {
method: "POST",
requestPayout: async (amount: number) => await fetch(`${API.BASE_URL}wallet/`, {
method: "PUT",
headers: headers(API.getToken()),
body: JSON.stringify({ amount })
})
Expand Down

0 comments on commit 656dad6

Please sign in to comment.