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

31 lines
499 B
Rust
Raw Normal View History

2020-09-25 00:54:01 +02:00
use actix_web_codegen::*;
#[get("/one", other)]
2020-09-25 00:54:01 +02:00
async fn one() -> String {
"Hello World!".to_owned()
}
#[post(/two)]
2020-09-25 00:54:01 +02:00
async fn two() -> String {
"Hello World!".to_owned()
}
static PATCH_PATH: &str = "/three";
#[patch(PATCH_PATH)]
2020-09-25 00:54:01 +02:00
async fn three() -> String {
"Hello World!".to_owned()
}
#[delete("/four", "/five")]
2020-09-25 00:54:01 +02:00
async fn four() -> String {
"Hello World!".to_owned()
}
2020-09-22 23:42:51 +02:00
#[delete("/five", method="GET")]
2020-09-25 00:54:01 +02:00
async fn five() -> String {
"Hello World!".to_owned()
2020-09-22 23:42:51 +02:00
}
fn main() {}