diff --git a/accountant/api/views/entries.py b/accountant/api/views/operations.py similarity index 97% rename from accountant/api/views/entries.py rename to accountant/api/views/operations.py index f2c41d9..b3a4803 100644 --- a/accountant/api/views/entries.py +++ b/accountant/api/views/operations.py @@ -169,7 +169,7 @@ class SoldsResource(Resource): return Operation.get_ohlc_per_day_for_range(session, **kwargs).all() -api_api.add_resource(OperationListResource, "/entries") -api_api.add_resource(OperationResource, "/entries/") +api_api.add_resource(OperationListResource, "/operations") +api_api.add_resource(OperationResource, "/operations/") api_api.add_resource(CategoriesResource, "/categories") api_api.add_resource(SoldsResource, "/solds") diff --git a/accountant/frontend/static/js/entries.js b/accountant/frontend/static/js/operations.js similarity index 99% rename from accountant/frontend/static/js/entries.js rename to accountant/frontend/static/js/operations.js index ced05a1..3c7405d 100644 --- a/accountant/frontend/static/js/entries.js +++ b/accountant/frontend/static/js/operations.js @@ -18,7 +18,7 @@ accountantApp .factory("Operation", [ "$resource", function($resource) { return $resource( - "/api/entries/:id", { + "/api/operations/:id", { id: "@id" } );