server: update actix, inline juniper-actix

This commit is contained in:
Valentin Tolmer
2023-02-23 16:48:37 +01:00
committed by nitnelave
parent 07de6062ca
commit dce73f91ef
6 changed files with 820 additions and 949 deletions

View File

@@ -85,7 +85,10 @@ fn http_config<Backend>(
server_url,
mail_options,
}))
.route("/health", web::get().to(|| HttpResponse::Ok().finish()))
.route(
"/health",
web::get().to(|| async { HttpResponse::Ok().finish() }),
)
.service(
web::scope("/auth")
.configure(|cfg| auth_service::configure_server::<Backend>(cfg, enable_password_reset)),
@@ -165,7 +168,7 @@ where
let jwt_blacklist = jwt_blacklist.clone();
let server_url = server_url.clone();
let mail_options = mail_options.clone();
HttpServiceBuilder::new()
HttpServiceBuilder::default()
.finish(map_config(
App::new()
.wrap(tracing_actix_web::TracingLogger::<CustomRootSpanBuilder>::new())