Created
June 11, 2014 10:01
-
-
Save danse/f57061fc89418f14319a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from eve import Eve | |
from raven.handlers.logging import SentryHandler | |
import superdesk | |
from .settings import settings as default_settings | |
from .blueprints.proxy import blueprint as proxy_blueprint | |
def register_blueprints(app): | |
app.register_blueprint(proxy_blueprint, url_prefix='/proxy') | |
def get_app(customised={}): | |
settings = default_settings.copy() | |
settings.update(customised) | |
app = Eve(settings=settings) | |
register_blueprints(app) | |
superdesk.users.register(app) | |
return app | |
app = get_app() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment