added functionality and file structure
This commit is contained in:
parent
756d77a1d8
commit
dd91be366b
@ -1,7 +1,13 @@
|
||||
#[macro_use] extern crate rocket;
|
||||
use rocket::{Rocket, Build};
|
||||
|
||||
#[get("/")]
|
||||
fn index() -> String {
|
||||
format!("Hello world")
|
||||
}
|
||||
|
||||
#[launch]
|
||||
fn rocket() -> Rocket<Build> {
|
||||
rocket::build()
|
||||
.mount("/", routes![index])
|
||||
}
|
Loading…
Reference in New Issue
Block a user