summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorBenedict Börger <benedict@0xb8000.de>2019-04-14 20:06:27 +0200
committerBenedict Börger <benedict@0xb8000.de>2019-04-14 20:06:27 +0200
commit6712b19dbd2d21e5e89ac7a8d748369ea0a4612f (patch)
tree0e6b0d3ab2804d0473eb64db0410a3dcd340462a /src/main.rs
parentf28e8a59c781f24ed9399268cc2536aad0cf534d (diff)
[web-fronted] refactoring code
For historic reason, two handlers exists, one for POST and one for GET request. Merge these two to one GET request handler. This handler has optionally three parameteres: * filter: Filters the transactions by the given regex * date_start: Output only transactions after this date * date_end: Output only transactions before this date If more than one parameter is given, all filters must match for a transaction to be printed.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index eef92b6..c085bfc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,7 +25,6 @@ fn main() {
rocket::ignite()
.attach(Template::fairing())
.mount("/", routes![web_frontend::transactions::transaction_handler,
- web_frontend::transactions::transaction_handler_post,
web_frontend::balance::balance_handler, web_frontend::static_handler,
web_frontend::chart::chart_handler, web_frontend::asset::asset_handler])
.launch();