Function actix_web::web::patch [−][src]
pub fn patch() -> Route
Expand description
Create route with PATCH
method guard.
use actix_web::{web, App, HttpResponse};
let app = App::new().service(
web::resource("/{project_id}")
.route(web::patch().to(|| HttpResponse::Ok()))
);
In the above example, one PATCH
route gets added:
- /{project_id}