Rename entry in operation.

This commit is contained in:
Alexis Lahouze 2015-08-21 01:02:14 +02:00
parent c986cf5186
commit 976a51ef52
2 changed files with 3 additions and 3 deletions

View File

@ -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/<int:operation_id>")
api_api.add_resource(OperationListResource, "/operations")
api_api.add_resource(OperationResource, "/operations/<int:operation_id>")
api_api.add_resource(CategoriesResource, "/categories")
api_api.add_resource(SoldsResource, "/solds")

View File

@ -18,7 +18,7 @@ accountantApp
.factory("Operation", [ "$resource", function($resource) {
return $resource(
"/api/entries/:id", {
"/api/operations/:id", {
id: "@id"
}
);