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

12 lines
216 B
Rust

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