mirror of https://github.com/rwf2/Rocket.git
Update example.
This commit is contained in:
parent
ad08fe1d04
commit
4d4985a0e7
|
@ -9,7 +9,7 @@ does, the following will be the canonical "Hello, world!" example:
|
||||||
#![plugin(rocket_macros)]
|
#![plugin(rocket_macros)]
|
||||||
|
|
||||||
extern crate rocket;
|
extern crate rocket;
|
||||||
use rocket::{Rocket, Request, Response, Method, Route};
|
use rocket::Rocket;
|
||||||
|
|
||||||
#[route(GET, path = "/hello")]
|
#[route(GET, path = "/hello")]
|
||||||
fn hello() -> &'static str {
|
fn hello() -> &'static str {
|
||||||
|
|
Loading…
Reference in New Issue