11 lines
267 B
TypeScript
11 lines
267 B
TypeScript
import { NextResponse } from 'next/server';
|
|
import { getAuthService } from '@/lib/auth';
|
|
|
|
export async function GET() {
|
|
const authService = getAuthService();
|
|
const session = await authService.getCurrentSession();
|
|
|
|
return NextResponse.json({
|
|
session,
|
|
});
|
|
} |