2017-08-29 03:14:59 +00:00
|
|
|
#![feature(plugin, decl_macro)]
|
2016-09-09 03:38:58 +00:00
|
|
|
#![plugin(rocket_codegen)]
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/><")]
|
2016-09-09 03:25:07 +00:00
|
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<id><")]
|
2017-04-14 07:43:24 +00:00
|
|
|
fn get1(id: usize) -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<<<<id><")]
|
2017-04-14 07:43:24 +00:00
|
|
|
fn get2(id: usize) -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<!>")]
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get3() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<_>")]
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get4() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<1>")]
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get5() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<>name><")]
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get6() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<name>:<id>")]
|
2017-02-06 12:03:30 +00:00
|
|
|
fn get7() -> &'static str { "hi" }
|
|
|
|
|
2017-09-22 01:01:56 +00:00
|
|
|
#[get("/<>")]
|
2017-02-06 12:03:30 +00:00
|
|
|
fn get8() -> &'static str { "hi" }
|