mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-04 00:32:39 +00:00
13 lines
202 B
Rust
13 lines
202 B
Rust
|
#![feature(plugin)]
|
||
|
#![plugin(rocket_codegen)]
|
||
|
|
||
|
extern crate rocket;
|
||
|
|
||
|
#[route(CONNECT, "hello")] //~ ERROR valid HTTP method
|
||
|
fn get() -> &'static str { "hi" }
|
||
|
|
||
|
fn main() {
|
||
|
let _ = routes![get];
|
||
|
}
|
||
|
|