From 8debeb15ccba3885b5cd3667ae3c22438459450d Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Fri, 9 Jun 2023 06:52:39 -0400 Subject: [PATCH] add /all back --- src/html/index.html | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/index.html b/src/html/index.html index 8b8980f..fa741f5 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -45,7 +45,7 @@
GET /{worldID} ▶️ - + GET /all ▶️

Results are cached for 3 minutes. Requesting faster is a dumb idea.

diff --git a/src/main.rs b/src/main.rs index b8410fe..f5d99db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,7 @@ async fn main() { let app = Router::new() .layer(tower_http::trace::TraceLayer::new_for_http()) .route("/:world", get(get_one_world)) - // .route("/all", get(get_all_worlds)) + .route("/all", get(get_all_worlds)) .route("/", get(root)) .with_state(sled::open("/tmp/metagame").expect("open"));