added slashes
This commit is contained in:
parent
643ac28e6f
commit
04e9dc5ae7
|
|
@ -2,5 +2,5 @@ import { getAxios } from "@/shared/lib/getAxios";
|
||||||
|
|
||||||
export async function deleteChainById(id: string) {
|
export async function deleteChainById(id: string) {
|
||||||
const axios = getAxios();
|
const axios = getAxios();
|
||||||
await axios.delete(`/chain/delete/${id}`);
|
await axios.delete(`/chain/delete/${id}/`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export async function getChainList() {
|
||||||
const axios = getAxios();
|
const axios = getAxios();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get("/chain/list");
|
const response = await axios.get("/chain/list/");
|
||||||
return z.array(chainSchema).parse(response.data);
|
return z.array(chainSchema).parse(response.data);
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ export async function upsertChain(chain: Chain) {
|
||||||
const axios = getAxios();
|
const axios = getAxios();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post("/chain", chain);
|
const response = await axios.post("/chain/", chain);
|
||||||
return chainSchema.parse(response.data);
|
return chainSchema.parse(response.data);
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user