aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-26 14:57:56 +0100
committerFlorian Dold <florian@dold.me>2023-02-26 14:57:56 +0100
commit3e8562456d6280184f4faf3c12c03c65f8a0a476 (patch)
tree8fce333980d6d0a07c819e170b31e9b5da77c1a1
parent4dff3853c1c4b2899eb9fde6dae14a22dc214867 (diff)
demobank-ui: fix request URIsv0.9.3-dev.8
-rw-r--r--packages/demobank-ui/src/hooks/access.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/hooks/access.ts b/packages/demobank-ui/src/hooks/access.ts
index 6046146ba..8282210d4 100644
--- a/packages/demobank-ui/src/hooks/access.ts
+++ b/packages/demobank-ui/src/hooks/access.ts
@@ -60,7 +60,7 @@ export function useAccessAPI(): AccessAPI {
};
const abortWithdrawal = async (id: string): Promise<HttpResponseOk<void>> => {
const res = await request<void>(
- `access-api/accounts/${account}/withdrawals/${id}`,
+ `access-api/accounts/${account}/withdrawals/${id}/abort`,
{
method: "POST",
contentType: "json",
@@ -73,7 +73,7 @@ export function useAccessAPI(): AccessAPI {
id: string,
): Promise<HttpResponseOk<void>> => {
const res = await request<void>(
- `access-api/accounts/${account}/withdrawals/${id}`,
+ `access-api/accounts/${account}/withdrawals/${id}/confirm`,
{
method: "POST",
contentType: "json",