mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: CORS proxy for neighbors
This commit is contained in:
1 parent
4f62a594b3
commit
15bf02f829
3 files changed
+13
-18
No files matched your search
@@ -1,12 +0,0 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { Region } from '../../../../../../../../constants/regions';
|
||||
import { getRatingsNeighbors } from '../../../../../../../../core/blitz/getRatingsNeighbors';
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
{ params }: { params: { region: Region; id: number; count: number } },
|
||||
) {
|
||||
return NextResponse.json(
|
||||
await getRatingsNeighbors(params.region, params.id, params.count),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user