- edited /alerts/notifications
This commit is contained in:
KRAIEM Taha Yassine 2021-05-21 20:25:58 +02:00
parent a200603420
commit 19cedf87d8
2 changed files with 12 additions and 0 deletions

View file

@ -410,3 +410,9 @@ def get_current_plan(context):
return {
"data": license.get_status(context["tenantId"])
}
@app.route('/alerts/notifications', methods=['POST', 'PUT'], authorizer=None)
def send_alerts_notifications():
data = app.current_request.json_body
return {"data": alerts.process_notifications(data.get("notifications", []))}

View file

@ -414,3 +414,9 @@ def get_current_plan(context):
return {
"data": license.get_status(context["tenantId"])
}
@app.route('/alerts/notifications', methods=['POST', 'PUT'], authorizer=None)
def send_alerts_notifications():
data = app.current_request.json_body
return {"data": alerts.process_notifications(data.get("notifications", []))}