19 lines
535 B
TypeScript
19 lines
535 B
TypeScript
import { GET as AuthGET, POST as AuthPOST } from "@/app/(auth)/auth";
|
|
|
|
export const GET = async (req: Request) => {
|
|
console.log("[Auth API] GET request:", req.url);
|
|
return AuthGET(req);
|
|
}
|
|
|
|
export const POST = async (req: Request) => {
|
|
console.log("[Auth API] POST request:", req.url);
|
|
try {
|
|
const clone = req.clone();
|
|
const text = await clone.text();
|
|
console.log("[Auth API] POST body:", text.substring(0, 500));
|
|
} catch (e) {
|
|
console.error("[Auth API] Error reading body:", e);
|
|
}
|
|
return AuthPOST(req);
|
|
}
|