mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: website apis
This commit is contained in:
1 parent
3d9872a671
commit
3245284ecc
4 files changed
+65
-15
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { Region } from '../../../../../../../constants/regions';
|
||||
import getArchivedRatingsInfo from '../../../../../../../core/blitzkrieg/getArchivedRatingsInfo';
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
{ params }: { params: { region: Region; season: number } },
|
||||
) {
|
||||
return NextResponse.json(
|
||||
await getArchivedRatingsInfo(params.region, params.season),
|
||||
);
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { Region } from '../../../../../../constants/regions';
|
||||
import { getArchivedRatingsLeaderboard } from '../../../../../../core/blitzkrieg/getArchivedRatingsLeaderboard';
|
||||
import { Region } from '../../../../../../../constants/regions';
|
||||
import { getArchivedRatingsLeaderboard } from '../../../../../../../core/blitzkrieg/getArchivedRatingsLeaderboard';
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
Reference in new issue
Block a user