mirror of
https://github.com/actix/actix-web.git
synced 2025-01-05 06:48:44 +00:00
26 lines
401 B
Rust
26 lines
401 B
Rust
|
use actix_web::*;
|
||
|
|
||
|
#[get("/one", other)]
|
||
|
async fn one() -> impl Responder {
|
||
|
HttpResponse::Ok()
|
||
|
}
|
||
|
|
||
|
#[post(/two)]
|
||
|
async fn two() -> impl Responder {
|
||
|
HttpResponse::Ok()
|
||
|
}
|
||
|
|
||
|
static PATCH_PATH: &str = "/three";
|
||
|
|
||
|
#[patch(PATCH_PATH)]
|
||
|
async fn three() -> impl Responder {
|
||
|
HttpResponse::Ok()
|
||
|
}
|
||
|
|
||
|
#[delete("/four", "/five")]
|
||
|
async fn four() -> impl Responder {
|
||
|
HttpResponse::Ok()
|
||
|
}
|
||
|
|
||
|
fn main() {}
|