Skip to main content

sunday_slate/contests/
mod.rs

1mod handlers;
2pub mod service;
3
4use crate::AppState;
5use axum::Router;
6use axum::routing::get;
7
8/// Member-facing contest pages: the season list and one contest's details.
9pub fn router() -> Router<AppState> {
10    Router::new()
11        .route("/contests", get(handlers::index))
12        .route("/contests/{id}", get(handlers::show))
13        .route("/contests/{id}/events", get(handlers::events))
14}