aboutsummaryrefslogtreecommitdiff
path: root/backend/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/main.rs')
-rw-r--r--backend/src/main.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/src/main.rs b/backend/src/main.rs
new file mode 100644
index 0000000..fd0ff2e
--- /dev/null
+++ b/backend/src/main.rs
@@ -0,0 +1,15 @@
+#![feature(proc_macro_hygiene, decl_macro)]
+
+#[macro_use]
+extern crate rocket;
+#[macro_use]
+extern crate rocket_contrib;
+
+#[get("/")]
+fn index() -> &'static str {
+ "Hello, world!"
+}
+
+fn main() {
+ rocket::ignite().mount("/", routes![index]).launch();
+}