Ejemplo n.º 1
0
 def private_calls():
     if request.method == 'PATCH':
         return TreatmentPlan.update_resource(req_data, tp_id)
     elif request.method == 'DELETE':
         return TreatmentPlan.deactivate_resource(tp_id)