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