Function ntex::web::patch[][src]

pub fn patch<Err: ErrorRenderer>() -> Route<Err>
Expand description

Create route with PATCH method guard.

use ntex::web;

let app = web::App::new().service(
    web::resource("/{project_id}")
        .route(web::patch().to(|| async { web::HttpResponse::Ok() }))
);

In the above example, one PATCH route gets added:

  • /{project_id}