2025-07-22 07:36:13 -04:00
|
|
|
import { NextRequest, NextResponse } from 'next/server';
|
2025-07-21 14:53:06 -04:00
|
|
|
|
|
|
|
|
export default async function handler(req: NextRequest) {
|
|
|
|
|
return new NextResponse(JSON.stringify({
|
2025-07-22 07:36:13 -04:00
|
|
|
success: true,
|
|
|
|
|
message: 'API is working!',
|
|
|
|
|
timestamp: new Date().toISOString(),
|
|
|
|
|
environment: process.env.NODE_ENV || 'unknown',
|
|
|
|
|
has_database_url: !!process.env.DATABASE_URL,
|
|
|
|
|
has_jwt_secret: !!process.env.JWT_SECRET,
|
|
|
|
|
method: req.method,
|
|
|
|
|
url: req.url
|
2025-07-21 14:53:06 -04:00
|
|
|
}), {
|
|
|
|
|
status: 200,
|
2025-07-22 07:36:13 -04:00
|
|
|
headers: { 'Content-Type': 'application/json' },
|
|
|
|
|
});
|
2025-07-21 14:53:06 -04:00
|
|
|
}
|