refactor: renamed API dirs
This commit is contained in:
9
app/api/locations/available-years/route.ts
Normal file
9
app/api/locations/available-years/route.ts
Normal 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 });
|
||||
}
|
||||
Reference in New Issue
Block a user