summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 1325742..eef92b6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,10 +20,13 @@ fn main() {
// e.g. wheres is the asset config ini file
// TODO how pass config to the modules/handler ?
// launch web frontend
+ let asset_ini = "data/asset.ini";
+ banking::asset::Asset::from_ini_file(asset_ini);
rocket::ignite()
.attach(Template::fairing())
- .mount("/", routes![web_frontend::account_handler, web_frontend::transactions::transaction_handler,
+ .mount("/", routes![web_frontend::transactions::transaction_handler,
web_frontend::transactions::transaction_handler_post,
- web_frontend::balance::balance_handler, web_frontend::static_handler])
+ web_frontend::balance::balance_handler, web_frontend::static_handler,
+ web_frontend::chart::chart_handler, web_frontend::asset::asset_handler])
.launch();
}