DELETE method add tracing

This commit is contained in:
Lennart
2025-01-04 21:15:56 +01:00
parent 53a23fb0e2
commit 1e635e1b49

View File

@@ -8,12 +8,16 @@ use actix_web::HttpRequest;
use actix_web::HttpResponse;
use actix_web::Responder;
use rustical_store::auth::User;
use tracing::instrument;
use tracing_actix_web::RootSpan;
#[instrument(parent = root_span.id(), skip(path, req, root_span, resource_service))]
pub async fn route_delete<R: ResourceService>(
path: Path<R::PathComponents>,
req: HttpRequest,
user: User,
resource_service: Data<R>,
root_span: RootSpan,
) -> Result<impl Responder, R::Error> {
let no_trash = req
.headers()