Added endpoints for the proxy to notifications.

- this uses alpha API for delivery
- no DB model included as just proving
- all notifications for same service at the moment (!)
This commit is contained in:
Martyn Inglis
2016-01-19 11:23:09 +00:00
parent 6c7fb42272
commit d275ba83a2
8 changed files with 385 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
import os
class Config(object):
DEBUG = False
NOTIFY_LOG_LEVEL = 'DEBUG'
@@ -6,6 +9,8 @@ class Config(object):
SQLALCHEMY_COMMIT_ON_TEARDOWN = False
SQLALCHEMY_RECORD_QUERIES = True
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/notification_api'
NOTIFY_DATA_API_URL = os.getenv('NOTIFY_API_URL', "http://localhost:6001")
NOTIFY_DATA_API_AUTH_TOKEN = os.getenv('NOTIFY_API_TOKEN', "dev-token")
class Development(Config):