aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-08-27 17:05:11 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-08-27 17:05:11 +0200
commitc80ce332791c94b83a03c9f7c3cbb937f474cc5d (patch)
treefee4c200d9e85e08f3fde3b6360599a47f818829 /planetwars-server
parente26f13c8bba24e6f966888d5909f2803665c55a0 (diff)
downloadplanetwars.dev-c80ce332791c94b83a03c9f7c3cbb937f474cc5d.tar.xz
planetwars.dev-c80ce332791c94b83a03c9f7c3cbb937f474cc5d.zip
allow selecting a map in editor view
Diffstat (limited to 'planetwars-server')
-rw-r--r--planetwars-server/src/lib.rs1
-rw-r--r--planetwars-server/src/routes/mod.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs
index 4950815..fa1af8d 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -133,6 +133,7 @@ pub fn api() -> Router {
"/matches/:match_id/log",
get(routes::matches::get_match_log),
)
+ .route("/maps", get(routes::maps::list_maps))
.route("/leaderboard", get(routes::bots::get_ranking))
.route("/submit_bot", post(routes::demo::submit_bot))
.route("/save_bot", post(routes::bots::save_bot))
diff --git a/planetwars-server/src/routes/mod.rs b/planetwars-server/src/routes/mod.rs
index b3decb8..9510fd4 100644
--- a/planetwars-server/src/routes/mod.rs
+++ b/planetwars-server/src/routes/mod.rs
@@ -1,4 +1,5 @@
pub mod bots;
pub mod demo;
+pub mod maps;
pub mod matches;
pub mod users;