diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-10-01 22:12:36 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-10-01 22:12:36 +0200 |
commit | b62344371e4ce07aa19da5e7faeef322e907653e (patch) | |
tree | dcf6d55a6620d657938d6092d7ba449371243f3d /src/main.rs | |
parent | 370790ab51a542cf9b56d21548451c84e741701e (diff) | |
download | rocket-blog-b62344371e4ce07aa19da5e7faeef322e907653e.tar.gz rocket-blog-b62344371e4ce07aa19da5e7faeef322e907653e.tar.bz2 rocket-blog-b62344371e4ce07aa19da5e7faeef322e907653e.zip |
Get database connection on request
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index d9747c9..711c343 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ extern crate rocket; extern crate rocket_blog; #[get("/")] -fn index() -> &'static str { +fn index(conn: rocket_blog::DbConn) -> &'static str { "Hallo, for faen!" } |