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