feat: add bookmarks & bookmarks category pages

This commit is contained in:
Kentai Radiquum 2024-07-16 09:22:09 +05:00
parent a3f5f2e116
commit bccc8407fc
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
13 changed files with 624 additions and 155 deletions

View file

@ -4,7 +4,7 @@ import { ENDPOINTS } from "@/app/api/config";
export async function GET(request, params) {
const token = request.nextUrl.searchParams.get(["token"]) || null;
let url = new URL(`${ENDPOINTS.profile}/${params["params"]["id"]}`);
let url = new URL(`${ENDPOINTS.user.profile}/${params["params"]["id"]}`);
if (token) {
url.searchParams.set("token", token);
}