[][src]Function requiem_web::web::patch

pub fn patch() -> Route

Create route with PATCH method guard.

use requiem_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 get added:

  • /{project_id}