mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-31 23:02:37 +00:00
15 lines
230 B
Rust
15 lines
230 B
Rust
#![feature(plugin, decl_macro, proc_macro_non_items)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
#[macro_use] extern crate rocket;
|
|
|
|
#[get("/<todo>")]
|
|
fn todo(todo: String) -> String {
|
|
todo
|
|
}
|
|
|
|
#[test]
|
|
fn main() {
|
|
let _ = routes![todo];
|
|
}
|