Rocket/codegen/tests/run-pass/dynamic-paths.rs

12 lines
218 B
Rust
Raw Normal View History

2016-09-29 03:39:14 +00:00
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("/test/<one>/<two>/<three>")]
fn get(one: String, two: usize, three: isize) -> &'static str { "hi" }
2016-09-29 03:39:14 +00:00
fn main() {
let _ = routes![get];
}