create car page and update user page
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user