Rocket/codegen/tests/run-pass/dynamic-paths.rs
2016-09-28 20:39:14 -07:00

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];
}