mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-08 10:42:37 +00:00
f5ec470a7d
This is a breaking change. The `&str` type no longer implements `FromParam`. The `&RawStr` type should be used in its place.
15 lines
176 B
Rust
15 lines
176 B
Rust
#![feature(plugin)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
extern crate rocket;
|
|
|
|
#[get("/<todo>")]
|
|
fn todo(todo: String) -> String {
|
|
todo
|
|
}
|
|
|
|
fn main() {
|
|
let _ = routes![todo];
|
|
}
|
|
|