diff --git a/server/src/web.rs b/server/src/web.rs index 522ed2e..29c6fa0 100644 --- a/server/src/web.rs +++ b/server/src/web.rs @@ -227,12 +227,6 @@ fn common_js() -> BoxedFilter<(impl Reply, )> { .boxed() } -fn index() -> BoxedFilter<(impl Reply, )> { - let route = warp::path::end() - .map(|| warp::redirect(Uri::from_static("/listings"))); - warp::get().and(route).boxed() -} - fn list_js() -> BoxedFilter<(impl Reply, )> { warp::path("list.js") .and(warp::path::end()) @@ -240,6 +234,12 @@ fn list_js() -> BoxedFilter<(impl Reply, )> { .boxed() } +fn index() -> BoxedFilter<(impl Reply, )> { + let route = warp::path::end() + .map(|| warp::redirect(Uri::from_static("/listings"))); + warp::get().and(route).boxed() +} + fn listings(state: Arc) -> BoxedFilter<(impl Reply, )> { async fn logic(state: Arc, codes: Option) -> std::result::Result { let lang = Language::from_codes(codes.as_deref());