aboutsummaryrefslogtreecommitdiff
path: root/backend/src
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2021-12-13 15:43:47 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2021-12-13 15:43:47 +0100
commit8b4440f7236b0972c1a804eea4c8305b958ad03c (patch)
tree4526fdda6de75b2ee380bf41d306da5c7bb8b6cb /backend/src
parent931bf0fbed9670c356fdeae0f2e4559ff3e59ebb (diff)
downloadplanetwars.dev-8b4440f7236b0972c1a804eea4c8305b958ad03c.tar.xz
planetwars.dev-8b4440f7236b0972c1a804eea4c8305b958ad03c.zip
setup basic rocket+diesel app
Diffstat (limited to 'backend/src')
-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();
+}