Moved hello world to own module

This commit is contained in:
Jef Roosens 2021-03-05 20:58:33 +01:00
parent b49a01ab03
commit 57de7c66b3
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
7 changed files with 9 additions and 5 deletions

0
src/hello/controller.rs Normal file
View file

1
src/hello/mod.rs Normal file
View file

@ -0,0 +1 @@
pub mod routes;

4
src/hello/routes.rs Normal file
View file

@ -0,0 +1,4 @@
#[get("/world")]
pub fn world() -> &'static str {
"Hello, world!"
}