diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-13 15:43:47 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-13 15:43:47 +0100 |
commit | 8b4440f7236b0972c1a804eea4c8305b958ad03c (patch) | |
tree | 4526fdda6de75b2ee380bf41d306da5c7bb8b6cb /backend/src | |
parent | 931bf0fbed9670c356fdeae0f2e4559ff3e59ebb (diff) | |
download | planetwars.dev-8b4440f7236b0972c1a804eea4c8305b958ad03c.tar.xz planetwars.dev-8b4440f7236b0972c1a804eea4c8305b958ad03c.zip |
setup basic rocket+diesel app
Diffstat (limited to 'backend/src')
-rw-r--r-- | backend/src/main.rs | 15 |
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(); +} |