Skip to content

Commit

Permalink
refactor: missed axum 0.6 update (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo authored Dec 8, 2022
1 parent 2e6ac41 commit 7525c7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/src/api/latest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async fn request_acme_certificate(

async fn get_projects(
_: Admin,
Extension(service): Extension<Arc<GatewayService>>,
State(RouterState { service, .. }): State<RouterState>,
) -> Result<AxumJson<Vec<project::AdminResponse>>, Error> {
let projects = service
.iter_projects_detailed()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 7525c7a

Please sign in to comment.