diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-24 16:45:29 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-24 16:45:29 +0200 |
commit | ccfe86729e3a454e3fdf529abd7063ceb8fa859f (patch) | |
tree | 0c60dfbc76c1e2c2ba6c71a5201fde18690969f5 /planetwars-server/src/lib.rs | |
parent | 33664eff2c93136658b7f863c95e1bfda91141ee (diff) | |
download | planetwars.dev-ccfe86729e3a454e3fdf529abd7063ceb8fa859f.tar.xz planetwars.dev-ccfe86729e3a454e3fdf529abd7063ceb8fa859f.zip |
add bot detail page
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r-- | planetwars-server/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index ccf7cfc..3ad0c88 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -124,9 +124,9 @@ pub fn api() -> Router { "/bots", get(routes::bots::list_bots).post(routes::bots::create_bot), ) - .route("/bots/:bot_id", get(routes::bots::get_bot)) + .route("/bots/:bot_name", get(routes::bots::get_bot)) .route( - "/bots/:bot_id/upload", + "/bots/:bot_name/upload", post(routes::bots::upload_code_multipart), ) .route("/matches", get(routes::matches::list_matches)) |