diff --git a/accountant/api/views/accounts.py b/accountant/api/views/accounts.py index 1aa8dd0..ce1240a 100644 --- a/accountant/api/views/accounts.py +++ b/accountant/api/views/accounts.py @@ -148,7 +148,6 @@ api.add_resource(AccountResource, '/account/') range_parser = reqparse.RequestParser() -range_parser.add_argument('account', type=int) range_parser.add_argument('begin', type=lambda a: dateutil.parser.parse(a)) range_parser.add_argument('end', type=lambda a: dateutil.parser.parse(a)) @@ -187,5 +186,5 @@ class OHLCResource(Resource): return Operation.get_ohlc_per_day_for_range(id, **data).all() -api.add_resource(CategoryResource, "/account//categories") -api.add_resource(OHLCResource, "/account//solds") +api.add_resource(CategoryResource, "/account//category") +api.add_resource(OHLCResource, "/account//ohlc")