diff --git a/app/(authenticated)/sports/[id]/league/page.tsx b/app/(authenticated)/sports/[id]/create-league/page.tsx similarity index 94% rename from app/(authenticated)/sports/[id]/league/page.tsx rename to app/(authenticated)/sports/[id]/create-league/page.tsx index 2806e9e..34e7cc9 100644 --- a/app/(authenticated)/sports/[id]/league/page.tsx +++ b/app/(authenticated)/sports/[id]/create-league/page.tsx @@ -10,7 +10,7 @@ export default async function LeaguePage({params}: { params: { id: string } }) { return ( - + 管理者のダッシュボード diff --git a/app/(authenticated)/sports/[id]/tournament/page.tsx b/app/(authenticated)/sports/[id]/create-tournament/page.tsx similarity index 100% rename from app/(authenticated)/sports/[id]/tournament/page.tsx rename to app/(authenticated)/sports/[id]/create-tournament/page.tsx diff --git a/app/(authenticated)/sports/[id]/[gameId]/[matchId]/page.tsx b/app/(authenticated)/sports/[id]/games/[gameId]/matches/[matchId]/page.tsx similarity index 93% rename from app/(authenticated)/sports/[id]/[gameId]/[matchId]/page.tsx rename to app/(authenticated)/sports/[id]/games/[gameId]/matches/[matchId]/page.tsx index 0a61507..b1ba6be 100644 --- a/app/(authenticated)/sports/[id]/[gameId]/[matchId]/page.tsx +++ b/app/(authenticated)/sports/[id]/games/[gameId]/matches/[matchId]/page.tsx @@ -15,7 +15,7 @@ export default async function MatchPage({params}: { params: { matchId:string, ga return( - + 管理者のダッシュボード @@ -24,7 +24,7 @@ export default async function MatchPage({params}: { params: { matchId:string, ga {sport.name} - + {game.name}(ID:{gameId}) 試合(ID:{match.id}) diff --git a/app/(authenticated)/sports/[id]/[gameId]/page.tsx b/app/(authenticated)/sports/[id]/games/[gameId]/page.tsx similarity index 100% rename from app/(authenticated)/sports/[id]/[gameId]/page.tsx rename to app/(authenticated)/sports/[id]/games/[gameId]/page.tsx diff --git a/app/(authenticated)/sports/[id]/page.tsx b/app/(authenticated)/sports/[id]/page.tsx index bc57aec..6c1dd25 100644 --- a/app/(authenticated)/sports/[id]/page.tsx +++ b/app/(authenticated)/sports/[id]/page.tsx @@ -19,20 +19,20 @@ export default async function SportPage({params}: { params: { id: string } }) { 管理者のダッシュボード - + 競技管理 {sport.name} {gameType === "league" && ( - + )} {gameType === "tournament" && ( - + diff --git a/components/sports/leagueList.tsx b/components/sports/leagueList.tsx index 298fd11..f2a212a 100644 --- a/components/sports/leagueList.tsx +++ b/components/sports/leagueList.tsx @@ -16,7 +16,7 @@ export default function LeagueList(props: LeagueListProps) { {game.name} diff --git a/middleware.ts b/middleware.ts index 37b70a4..1695f1f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -6,11 +6,10 @@ export function middleware(request: NextRequest) { if (!accessToken) { const protectedPaths: string[] = [ '/sports', - '/tournament', - '/league', '/teams', '/users', '/roles', + '/locations', ] // check if next path starts with any of the protected paths or root