Skip to content

Commit

Permalink
updating routes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMcCormickJr committed Dec 1, 2024
1 parent f641fd3 commit c777177
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#[macro_use] extern crate rocket;

#[get("/")]
fn index() -> &'static str {
"Hello, Bartlesville!"
fn map_root() -> &'static str {
"Map of Bartlesville recycling options"
}

#[get("/map")]
fn map() _> &'static str {
fn map() -> &'static str {
"Map of Bartlesville recycling options"
}

#[launch]
fn rocket() -> _ {
rocket::build()
.mount("/", routes![index])
}
.mount("/", routes![map_root, map])
}

0 comments on commit c777177

Please sign in to comment.