add /all back
This commit is contained in:
parent
6ed6701bb4
commit
8debeb15cc
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue