refactored public page endpoints

This commit is contained in:
daniel31x13
2023-11-15 13:12:06 -05:00
parent 09ee81bf11
commit 59815f47d8
18 changed files with 262 additions and 128 deletions
@@ -1,6 +1,6 @@
import { prisma } from "@/lib/api/db";
export default async function getPublicUserById(
export default async function getPublicUser(
targetId: number | string,
isId: boolean,
requestingId?: number