2015-10-13 14:45:49 +00:00
|
|
|
import os
|
|
|
|
import logging.config
|
|
|
|
|
2015-02-17 18:16:03 +00:00
|
|
|
from app import app as application
|
2014-10-14 17:58:08 +00:00
|
|
|
from endpoints.api import api_bp
|
2016-03-30 21:56:04 +00:00
|
|
|
from endpoints.bitbuckettrigger import bitbuckettrigger
|
2015-04-24 19:13:08 +00:00
|
|
|
from endpoints.githubtrigger import githubtrigger
|
2015-05-02 21:54:48 +00:00
|
|
|
from endpoints.gitlabtrigger import gitlabtrigger
|
2016-08-31 18:31:43 +00:00
|
|
|
from endpoints.keyserver import key_server
|
2017-02-16 20:56:16 +00:00
|
|
|
from endpoints.oauth.login import oauthlogin
|
2016-03-30 21:56:04 +00:00
|
|
|
from endpoints.realtime import realtime
|
|
|
|
from endpoints.web import web
|
|
|
|
from endpoints.webhooks import webhooks
|
2016-09-12 21:33:08 +00:00
|
|
|
from endpoints.wellknown import wellknown
|
2014-10-14 17:58:08 +00:00
|
|
|
|
2015-10-13 14:45:49 +00:00
|
|
|
if os.environ.get('DEBUGLOG') == 'true':
|
|
|
|
logging.config.fileConfig('conf/logging_debug.conf', disable_existing_loggers=False)
|
|
|
|
|
2014-10-14 17:58:08 +00:00
|
|
|
application.register_blueprint(web)
|
2015-04-24 19:13:08 +00:00
|
|
|
application.register_blueprint(githubtrigger, url_prefix='/oauth2')
|
2015-05-02 21:54:48 +00:00
|
|
|
application.register_blueprint(gitlabtrigger, url_prefix='/oauth2')
|
2015-04-24 19:13:08 +00:00
|
|
|
application.register_blueprint(oauthlogin, url_prefix='/oauth2')
|
|
|
|
application.register_blueprint(bitbuckettrigger, url_prefix='/oauth1')
|
2014-10-14 17:58:08 +00:00
|
|
|
application.register_blueprint(api_bp, url_prefix='/api')
|
|
|
|
application.register_blueprint(webhooks, url_prefix='/webhooks')
|
|
|
|
application.register_blueprint(realtime, url_prefix='/realtime')
|
2016-03-30 21:56:04 +00:00
|
|
|
application.register_blueprint(key_server, url_prefix='/keys')
|
2016-09-12 21:33:08 +00:00
|
|
|
application.register_blueprint(wellknown, url_prefix='/.well-known')
|