fix middle 103

This commit is contained in:
2025-04-09 11:38:12 +08:00
parent 29036beb15
commit fa69f3a929
6 changed files with 37 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
import { cookies } from "next/headers";
import "colors";
export async function GET(req: Request) {
// const token = req.headers.get("Authorizationx")?.split(" ")[1];
const token = cookies().get("hipmi-key")?.value;
return new Response(token, {
status: 200,
headers: {
"Content-Type": "application/json",
"Cache-Control": "no-store",
},
});
}