This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/web.py

28 lines
1.1 KiB
Python
Raw Normal View History

import os
import logging.config
from app import app as application
from endpoints.api import api_bp
from endpoints.web import web
from endpoints.webhooks import webhooks
from endpoints.realtime import realtime
2015-04-24 19:13:08 +00:00
from endpoints.oauthlogin import oauthlogin
from endpoints.githubtrigger import githubtrigger
2015-05-02 21:54:48 +00:00
from endpoints.gitlabtrigger import gitlabtrigger
2015-04-24 19:13:08 +00:00
from endpoints.bitbuckettrigger import bitbuckettrigger
2015-10-27 21:38:48 +00:00
from endpoints.sec import sec
if os.environ.get('DEBUGLOG') == 'true':
logging.config.fileConfig('conf/logging_debug.conf', disable_existing_loggers=False)
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')
application.register_blueprint(api_bp, url_prefix='/api')
application.register_blueprint(webhooks, url_prefix='/webhooks')
application.register_blueprint(realtime, url_prefix='/realtime')
2015-10-27 21:38:48 +00:00
application.register_blueprint(sec, url_prefix='/sec')