Updated charge close to working

This commit is contained in:
2025-09-09 18:26:08 -04:00
parent 14abc3c2b4
commit 382e12671b
4 changed files with 75 additions and 1 deletions

View File

@@ -288,6 +288,12 @@ def delete_service_plan(customer_id):
db.session.rollback()
return jsonify({"error": str(e)}), 500
@service.route("/<int:id>", methods=["GET"])
def get_service_by_id(id):
service_record = Service_Service.query.get_or_404(id)
service_schema = Service_Service_schema()
return jsonify({"ok": True, "service": service_schema.dump(service_record)}), 200
@service.route("/delete/<int:id>", methods=["DELETE"])
def delete_service_call(id):
service_record = Service_Service.query.get_or_404(id)