diff options
| author | Benedict Börger <benedict@0xb8000.de> | 2019-04-14 19:12:21 +0200 |
|---|---|---|
| committer | Benedict Börger <benedict@0xb8000.de> | 2019-04-14 19:12:21 +0200 |
| commit | f28e8a59c781f24ed9399268cc2536aad0cf534d (patch) | |
| tree | 5678dd6c12b5849ab15f9d63a49c9424d222390b /src/main.rs | |
| parent | 7e8656cb6d086f364baeeb79a69a04555a6fd4f6 (diff) | |
[global] update all files
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
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(); } |
