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/registry.py

18 lines
502 B
Python
Raw Normal View History

import logging
import logging.config
import os
from app import app as application
# Note: We need to import this module to make sure the decorators are registered.
import endpoints.decorated
2015-06-22 21:37:13 +00:00
from endpoints.v1 import v1_bp
2015-07-15 21:48:56 +00:00
# from endpoints.v2 import v2_bp
if os.environ.get('DEBUGLOG') == 'true':
logging.config.fileConfig('conf/logging_debug.conf', disable_existing_loggers=False)
2015-06-22 21:37:13 +00:00
application.register_blueprint(v1_bp, url_prefix='/v1')
2015-07-15 21:48:56 +00:00
# application.register_blueprint(v2_bp, url_prefix='/v2')