pub fn patch() -> Route
Expand description
Creates a new route with PATCH
method guard.
§Examples
In this example, one PATCH /{project_id}
route is set up:
use actix_web::{web, App, HttpResponse};
let app = App::new().service(
web::resource("/{project_id}")
.route(web::patch().to(|| HttpResponse::Ok()))
);