refactored api routes
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
}`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user