Skip to main content

Module leagues

Module leagues 

Source

Modules§

store

Structs§

CurrentLeague
The league resolved for this request by the leagues::resolve middleware: an entity route’s owning league, the caller’s sticky session choice, or the fallback league, in that order — always a league the caller may use. Absence rejects with AppError::Unauthorized.
League
MaybeLeague
The league resolved for this request by the leagues::resolve middleware, read from request extensions. None when no league could be resolved, or when the middleware did not run (routes mounted outside it).

Functions§

resolve
Resolve the request’s league — and the user’s team in it — and cache both in request extensions.
router