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 abortWithdrawal = async (id: string): Promise<HttpResponseOk<void>> => {
|
||||||
const res = await request<void>(
|
const res = await request<void>(
|
||||||
`access-api/accounts/${account}/withdrawals/${id}`,
|
`access-api/accounts/${account}/withdrawals/${id}/abort`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
contentType: "json",
|
contentType: "json",
|
||||||
@ -73,7 +73,7 @@ export function useAccessAPI(): AccessAPI {
|
|||||||
id: string,
|
id: string,
|
||||||
): Promise<HttpResponseOk<void>> => {
|
): Promise<HttpResponseOk<void>> => {
|
||||||
const res = await request<void>(
|
const res = await request<void>(
|
||||||
`access-api/accounts/${account}/withdrawals/${id}`,
|
`access-api/accounts/${account}/withdrawals/${id}/confirm`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
contentType: "json",
|
contentType: "json",
|
||||||
|
Loading…
Reference in New Issue
Block a user