added team view to season_leagues

This commit is contained in:
2026-02-20 19:57:06 +11:00
parent c3d8e6c675
commit 7ea21c63e4
25 changed files with 1018 additions and 51 deletions

View File

@@ -117,6 +117,11 @@ func addRoutes(
Methods: []hws.Method{hws.MethodGET, hws.MethodPOST},
Handler: handlers.SeasonLeagueTeamsPage(s, conn),
},
{
Path: "/seasons/{season_short_name}/leagues/{league_short_name}/teams/{team_id}",
Method: hws.MethodGET,
Handler: handlers.SeasonLeagueTeamDetailPage(s, conn),
},
{
Path: "/seasons/{season_short_name}/leagues/{league_short_name}/stats",
Methods: []hws.Method{hws.MethodGET, hws.MethodPOST},
@@ -206,6 +211,11 @@ func addRoutes(
Method: hws.MethodPOST,
Handler: perms.RequirePermission(s, permissions.TeamsCreate)(handlers.NewTeamSubmit(s, conn)),
},
{
Path: "/teams/manage_roster",
Method: hws.MethodPOST,
Handler: perms.RequirePermission(s, permissions.TeamsManagePlayers)(handlers.ManageTeamRoster(s, conn)),
},
}
htmxRoutes := []hws.Route{