Changes:
- edited /alerts/notifications
This commit is contained in:
parent
a200603420
commit
19cedf87d8
2 changed files with 12 additions and 0 deletions
|
|
@ -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", []))}
|
||||
|
|
|
|||
|
|
@ -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", []))}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue