summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..af7b49a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,11 @@
-fn main() {
- println!("Hello, world!");
+#[macro_use] extern crate rocket;
+
+#[launch]
+fn rocket() -> _ {
+ rocket::build().mount("/", routes![index])
+}
+
+#[get("/")]
+fn index() -> &'static str {
+ "Hello, world!"
}