1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00
actix-web/actix-web-codegen/tests/trybuild/simple-fail.rs

31 lines
496 B
Rust
Raw Normal View History

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()
}
2020-09-22 23:42:51 +02:00
#[delete("/five", method="GET")]
async fn five() -> impl Responder {
HttpResponse::Ok()
}
fn main() {}