fix middleware

This commit is contained in:
2025-02-05 15:07:18 +08:00
parent 331b5c9a84
commit 6dc4e7afc3
10 changed files with 713 additions and 203 deletions

View File

@@ -1,10 +1,9 @@
import { NextResponse } from "next/server";
export async function GET(req: Request) {
const auth = req.headers.get("Authorization");
const token = auth?.split(" ")[1];
console.log("TOKEN>", token);
if (!token) return NextResponse.json({ success: false }, { status: 401 });
return NextResponse.json({ success: true });