diff --git a/src/api/src/http/attest.rs b/src/api/src/http/attest.rs index 9d0c1477db..f45ddfbd8c 100644 --- a/src/api/src/http/attest.rs +++ b/src/api/src/http/attest.rs @@ -17,6 +17,7 @@ pub(crate) async fn auth( request: web::Json, map: web::Data>, timeout: web::Data, + _attestation_service: web::Data, ) -> Result { info!("request: {:?}", &request); diff --git a/src/api/src/lib.rs b/src/api/src/lib.rs index a9d0180afd..95a0bc2337 100644 --- a/src/api/src/lib.rs +++ b/src/api/src/lib.rs @@ -277,7 +277,8 @@ impl ApiServer { cfg_if::cfg_if! { if #[cfg(feature = "as")] { server_app = server_app.app_data(web::Data::clone(&sessions)) - .app_data(web::Data::clone(&attestation_service)).service(web::resource(kbs_path!("auth")).route(web::post().to(http::auth))) + .app_data(web::Data::clone(&attestation_service)) + .service(web::resource(kbs_path!("auth")).route(web::post().to(http::auth))) .service(web::resource(kbs_path!("attest")).route(web::post().to(http::attest))) .service( web::resource(kbs_path!("attestation-policy"))