refactor: bring in the modules
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
parent
8a3b29a0ef
commit
9c5a3af128
12 changed files with 145 additions and 118 deletions
10
src/routes/index.rs
Normal file
10
src/routes/index.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use rocket_dyn_templates::Template;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[get("/")]
|
||||
pub async fn index() -> Option<Template> {
|
||||
let mut map = HashMap::new();
|
||||
map.insert("title", "bin");
|
||||
Some(Template::render("index", &map))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue