fixing typescript errors
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { fetchAllLocations } from '@/app/lib/actions/locationActions';
|
||||
import type { NextApiRequest } from 'next'
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
export const GET = async (
|
||||
req: NextApiRequest,
|
||||
req: Request,
|
||||
) => {
|
||||
// get year from query params
|
||||
const url = new URL(req.url as string);
|
||||
|
||||
Reference in New Issue
Block a user