code refactoring + many security/bug fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { toast } from "react-hot-toast";
|
||||
|
||||
export default async function getPublicUserData(id: number | string) {
|
||||
const response = await fetch(`/api/v1/users/${id}`);
|
||||
const response = await fetch(`/api/v1/public/users/${id}`);
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user