mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
team parse fixes
This commit is contained in:
parent
8fd98b708f
commit
ddbac7dc79
16 changed files with 4505 additions and 295 deletions
583
api-server/Cargo.lock
generated
583
api-server/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue