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