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
@@ -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
}`
);