Change api status

This commit is contained in:
Randa Firman Putra
2025-07-01 17:59:18 +07:00
parent 6941b8bb8d
commit db82b40a6b
13 changed files with 72 additions and 79 deletions

View File

@@ -30,8 +30,6 @@ export async function GET() {
.sort((a, b) => b - a) // Sort descending
.slice(0, 7); // Take only 7 most recent years
console.log('Available years:', uniqueYears); // Debug log
return NextResponse.json(uniqueYears, {
headers: {
'Cache-Control': 'public, max-age=60, stale-while-revalidate=30',