aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-03-02 22:04:01 +0100
committerHarald Eilertsen <haraldei@anduin.net>2019-03-02 22:04:01 +0100
commit71eec22a16e0ac62bb2a04dbec535ff09411821d (patch)
tree38ec88bf19df5b1021d4683586fe0553b6eb3076 /src
downloadramaskrik-social-71eec22a16e0ac62bb2a04dbec535ff09411821d.tar.gz
ramaskrik-social-71eec22a16e0ac62bb2a04dbec535ff09411821d.tar.bz2
ramaskrik-social-71eec22a16e0ac62bb2a04dbec535ff09411821d.zip
Into space...
Diffstat (limited to 'src')
-rw-r--r--src/main.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..e283b21
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,12 @@
+#![feature(proc_macro_hygiene, decl_macro)]
+
+use rocket::{get, routes};
+
+#[get("/")]
+fn index() -> &'static str {
+ "Holahey, Jävlar!"
+}
+
+fn main() {
+ rocket::ignite().mount("/", routes![index]).launch();
+}