From 6712b19dbd2d21e5e89ac7a8d748369ea0a4612f Mon Sep 17 00:00:00 2001 From: Benedict Börger Date: Sun, 14 Apr 2019 20:06:27 +0200 Subject: [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. --- src/main.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/main.rs') 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(); -- cgit v1.2.3-70-g09d2