SEO: Fix structured data validation errors, delete static sitemap, and update indexing scripts
This commit is contained in:
14
src/app/(main)/api/csrf/route.ts
Normal file
14
src/app/(main)/api/csrf/route.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { getOrCreateCsrfToken } from '@/lib/csrf';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
/**
|
||||
* GET /api/csrf
|
||||
* Returns a CSRF token for the current session
|
||||
*/
|
||||
export async function GET() {
|
||||
const token = getOrCreateCsrfToken();
|
||||
|
||||
return NextResponse.json({ csrfToken: token });
|
||||
}
|
||||
Reference in New Issue
Block a user