team parse fixes

This commit is contained in:
Robin Appelman 2025-04-14 16:14:01 +02:00
commit ddbac7dc79
16 changed files with 4505 additions and 295 deletions

583
api-server/Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,8 @@ edition = "2021"
tokio = { version = "1.44.2", features = ["macros", "rt-multi-thread", "rt", "signal"] }
main_error = "0.1.2"
#ugc-scraper = { version = "*", path = ".." }
ugc-scraper = "0.4.4"
ugc-scraper = { version = "0.5.0", git = "https://github.com/icewind1991/ugc-scaper" }
#ugc-scraper = "0.5.0"
axum = "0.8.3"
steamid-ng = "1.0.0"
thiserror = "2.0.12"

View file

@ -62,15 +62,15 @@ async fn main() -> MainResult {
// build our application with a route
let app = Router::new()
.route("/", get(handler))
.route("/player/:id", get(player))
.route("/player/:id/history", get(player_history))
.route("/teams/:format", get(teams))
.route("/transactions/:format", get(transactions))
.route("/team/:id", get(team))
.route("/team/:id/roster", get(team_roster))
.route("/team/:id/matches", get(team_matches))
.route("/match/:id", get(match_page))
.route("/maps/:format", get(map_history))
.route("/player/{id}", get(player))
.route("/player/{id}/history", get(player_history))
.route("/teams/{format}", get(teams))
.route("/transactions/{format}", get(transactions))
.route("/team/{id}", get(team))
.route("/team/{id}/roster", get(team_roster))
.route("/team/{id}/matches", get(team_matches))
.route("/match/{id}", get(match_page))
.route("/maps/{format}", get(map_history))
.with_state(AppState::default());
let listener = TcpListener::bind((Ipv4Addr::new(127, 0, 0, 1), port)).await?;