mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 16:31:15 -05:00
We know there is at least one system which wants to integrate with Notify to send out emergency alerts, rather than creating them manually. This commit adds an endpoint to the public API to let them do that. To start with we’ll just let the system create them in a single call, meaning they still have to be approved manually. This reduces the risk of an attacker being able to broadcast an alert via the API, should the other system be compromised. We’ve worked with the owners of the other system to define which fields we should care about initially.
11 lines
226 B
Python
11 lines
226 B
Python
from flask import Blueprint
|
|
from app.v2.errors import register_errors
|
|
|
|
v2_broadcast_blueprint = Blueprint(
|
|
"v2_broadcast_blueprint",
|
|
__name__,
|
|
url_prefix='/v2/broadcast',
|
|
)
|
|
|
|
register_errors(v2_broadcast_blueprint)
|