website refactor

This commit is contained in:
2026-01-17 01:04:36 +01:00
parent 8ba46e96a6
commit 75ffe0798e
40 changed files with 267 additions and 321 deletions

View File

@@ -3,9 +3,9 @@ import { GetAvatarPageQuery } from '@/lib/page-queries/media/GetAvatarPageQuery'
export async function GET(
request: NextRequest,
{ params }: { params: { driverId: string } }
{ params }: { params: Promise<{ driverId: string }> }
) {
const { driverId } = params;
const { driverId } = await params;
const result = await GetAvatarPageQuery.execute({ driverId });

View File

@@ -3,9 +3,9 @@ import { GetCategoryIconPageQuery } from '@/lib/page-queries/media/GetCategoryIc
export async function GET(
request: NextRequest,
{ params }: { params: { categoryId: string } }
{ params }: { params: Promise<{ categoryId: string }> }
) {
const { categoryId } = params;
const { categoryId } = await params;
const result = await GetCategoryIconPageQuery.execute({ categoryId });

View File

@@ -3,9 +3,9 @@ import { GetLeagueCoverPageQuery } from '@/lib/page-queries/media/GetLeagueCover
export async function GET(
request: NextRequest,
{ params }: { params: { leagueId: string } }
{ params }: { params: Promise<{ leagueId: string }> }
) {
const { leagueId } = params;
const { leagueId } = await params;
const result = await GetLeagueCoverPageQuery.execute({ leagueId });

View File

@@ -3,9 +3,9 @@ import { GetLeagueLogoPageQuery } from '@/lib/page-queries/media/GetLeagueLogoPa
export async function GET(
request: NextRequest,
{ params }: { params: { leagueId: string } }
{ params }: { params: Promise<{ leagueId: string }> }
) {
const { leagueId } = params;
const { leagueId } = await params;
const result = await GetLeagueLogoPageQuery.execute({ leagueId });

View File

@@ -3,9 +3,9 @@ import { GetSponsorLogoPageQuery } from '@/lib/page-queries/media/GetSponsorLogo
export async function GET(
request: NextRequest,
{ params }: { params: { sponsorId: string } }
{ params }: { params: Promise<{ sponsorId: string }> }
) {
const { sponsorId } = params;
const { sponsorId } = await params;
const result = await GetSponsorLogoPageQuery.execute({ sponsorId });

View File

@@ -3,9 +3,9 @@ import { GetTeamLogoPageQuery } from '@/lib/page-queries/media/GetTeamLogoPageQu
export async function GET(
request: NextRequest,
{ params }: { params: { teamId: string } }
{ params }: { params: Promise<{ teamId: string }> }
) {
const { teamId } = params;
const { teamId } = await params;
const result = await GetTeamLogoPageQuery.execute({ teamId });

View File

@@ -3,9 +3,9 @@ import { GetTrackImagePageQuery } from '@/lib/page-queries/media/GetTrackImagePa
export async function GET(
request: NextRequest,
{ params }: { params: { trackId: string } }
{ params }: { params: Promise<{ trackId: string }> }
) {
const { trackId } = params;
const { trackId } = await params;
const result = await GetTrackImagePageQuery.execute({ trackId });