demobank-ui: fix request URIs
This commit is contained in:
parent
4dff3853c1
commit
3e8562456d
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user