add /all back

This commit is contained in:
41666 2023-06-09 06:52:39 -04:00
parent 6ed6701bb4
commit 8debeb15cc
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@
</div>
<div class="api-list">
<a class="api-item" href="/1">GET /{worldID} ▶️</a>
<!-- <a class="api-item" href="/all">GET /all ▶️</a> -->
<a class="api-item" href="/all">GET /all ▶️</a>
</div>
<p>Results are cached for 3 minutes. Requesting faster is a dumb idea.</p>
</main>

View file

@ -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"));