refactored api routes

This commit is contained in:
Daniel
2023-08-20 12:00:42 -04:00
parent b0e92c6253
commit 8dfd1598f3
12 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ const getPublicCollectionData = async (
const encodedData = encodeURIComponent(JSON.stringify(requestBody));
const res = await fetch(
"/api/public/routes/collections?body=" + encodeURIComponent(encodedData)
"/api/public/collections?body=" + encodeURIComponent(encodedData)
);
const data = await res.json();
+1 -1
View File
@@ -8,7 +8,7 @@ export default async function getPublicUserData({
id?: number;
}) {
const response = await fetch(
`/api/routes/users?id=${id}&${
`/api/users?id=${id}&${
username ? `username=${username?.toLowerCase()}` : undefined
}`
);