Endpoint to allow SES updates to occur

- update notification with delivery state
This commit is contained in:
Martyn Inglis
2016-03-10 17:29:17 +00:00
parent 2922712f0b
commit f88f86a924
10 changed files with 275 additions and 10 deletions

View File

@@ -71,7 +71,12 @@ def create_app():
def init_app(app):
@app.before_request
def required_authentication():
if request.path not in [url_for('status.show_status'), url_for('notifications.process_firetext_response')]:
no_auth_req = [
url_for('status.show_status'),
url_for('notifications.process_ses_response'),
url_for('notifications.process_firetext_response')
]
if request.path not in no_auth_req:
from app.authentication import auth
error = auth.requires_auth()
if error: