added slashes

This commit is contained in:
Robert 2024-03-08 22:44:54 +07:00
parent 643ac28e6f
commit 04e9dc5ae7
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22
3 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ import { getAxios } from "@/shared/lib/getAxios";
export async function deleteChainById(id: string) {
const axios = getAxios();
await axios.delete(`/chain/delete/${id}`);
await axios.delete(`/chain/delete/${id}/`);
}

View File

@ -6,7 +6,7 @@ export async function getChainList() {
const axios = getAxios();
try {
const response = await axios.get("/chain/list");
const response = await axios.get("/chain/list/");
return z.array(chainSchema).parse(response.data);
} catch {
return null;

View File

@ -5,7 +5,7 @@ export async function upsertChain(chain: Chain) {
const axios = getAxios();
try {
const response = await axios.post("/chain", chain);
const response = await axios.post("/chain/", chain);
return chainSchema.parse(response.data);
} catch {
return null;