added API routers for locations

This commit is contained in:
2024-02-08 13:22:19 +01:00
parent 3579bb616e
commit 4633b36474
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { fetchAvailableYears } from '@/app/lib/actions/monthActions';
import { NextResponse } from 'next/server';
export async function GET(request: Request) {
const availableYears = await fetchAvailableYears();
return NextResponse.json({ availableYears });
}