initial commit

This commit is contained in:
Kar k1
2025-08-30 18:18:57 +05:30
commit 7219108342
270 changed files with 70221 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { NextRequest, NextResponse } from 'next/server'
import { getGoogleAuthURL } from '@/lib/google-oauth'
export async function GET(request: NextRequest) {
try {
const authURL = getGoogleAuthURL()
return NextResponse.json({
success: true,
data: { authURL },
})
} catch (error) {
console.error('Google OAuth URL generation error:', error)
return NextResponse.json(
{
success: false,
error: { message: 'Failed to generate Google auth URL', code: 'OAUTH_ERROR' },
},
{ status: 500 }
)
}
}