From 6e0a707ccd9773792c85e2c97f2513f80a2f572b Mon Sep 17 00:00:00 2001 From: chesedo Date: Thu, 8 Dec 2022 10:11:21 +0200 Subject: [PATCH] refactor: missed axum 0.6 update --- gateway/src/api/latest.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/src/api/latest.rs b/gateway/src/api/latest.rs index a76981496..59844bc8d 100644 --- a/gateway/src/api/latest.rs +++ b/gateway/src/api/latest.rs @@ -258,7 +258,7 @@ async fn request_acme_certificate( async fn get_projects( _: Admin, - Extension(service): Extension>, + State(RouterState { service, .. }): State, ) -> Result>, Error> { let projects = service .iter_projects_detailed() @@ -307,7 +307,6 @@ impl ApiBuilder { "/admin/acme/request/:project_name/:fqdn", post(request_acme_certificate), ) - .route("/admin/projects", get(get_projects)) .layer(Extension(acme)) .layer(Extension(resolver)); self @@ -374,6 +373,7 @@ impl ApiBuilder { ) .route("/users/:account_name", get(get_user).post(post_user)) .route("/projects/:project_name/*any", any(route_project)) + .route("/admin/projects", get(get_projects)) .route("/admin/revive", post(revive_projects)); self }