create car page and update user page

This commit is contained in:
m7amedez5511
2026-06-13 17:49:48 +03:00
parent e0e38dc87a
commit 68bfce4345
12 changed files with 2320 additions and 387 deletions

View File

@@ -9,8 +9,7 @@ function normalizePath(path: string) {
// ─── API REQUESTS ─────────────────────────────
export async function requestJson<T>(
path: string,
init: RequestInit = {},
path: string, init: RequestInit = {}, token: string | null, p0: number,
): Promise<T> {
const token =
typeof window !== "undefined" ? localStorage.getItem("auth_token") : null;