Rename entry in operation.
This commit is contained in:
parent
c986cf5186
commit
976a51ef52
@ -169,7 +169,7 @@ class SoldsResource(Resource):
|
|||||||
return Operation.get_ohlc_per_day_for_range(session, **kwargs).all()
|
return Operation.get_ohlc_per_day_for_range(session, **kwargs).all()
|
||||||
|
|
||||||
|
|
||||||
api_api.add_resource(OperationListResource, "/entries")
|
api_api.add_resource(OperationListResource, "/operations")
|
||||||
api_api.add_resource(OperationResource, "/entries/<int:operation_id>")
|
api_api.add_resource(OperationResource, "/operations/<int:operation_id>")
|
||||||
api_api.add_resource(CategoriesResource, "/categories")
|
api_api.add_resource(CategoriesResource, "/categories")
|
||||||
api_api.add_resource(SoldsResource, "/solds")
|
api_api.add_resource(SoldsResource, "/solds")
|
@ -18,7 +18,7 @@ accountantApp
|
|||||||
|
|
||||||
.factory("Operation", [ "$resource", function($resource) {
|
.factory("Operation", [ "$resource", function($resource) {
|
||||||
return $resource(
|
return $resource(
|
||||||
"/api/entries/:id", {
|
"/api/operations/:id", {
|
||||||
id: "@id"
|
id: "@id"
|
||||||
}
|
}
|
||||||
);
|
);
|
Loading…
Reference in New Issue
Block a user