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

16 lines
517 B
Python
Raw Permalink Normal View History

2017-03-23 01:53:05 +00:00
import endpoints.decorated # Note: We need to import this module to make sure the decorators are registered.
import features
2017-03-23 01:53:05 +00:00
from app import app as application
2017-03-23 03:16:41 +00:00
from endpoints.appr import appr_bp, registry # registry needed to ensure routes registered
2015-06-22 21:37:13 +00:00
from endpoints.v1 import v1_bp
from endpoints.v2 import v2_bp
2015-06-22 21:37:13 +00:00
application.register_blueprint(v1_bp, url_prefix='/v1')
application.register_blueprint(v2_bp, url_prefix='/v2')
2017-03-23 01:53:05 +00:00
if features.APP_REGISTRY:
application.register_blueprint(appr_bp, url_prefix='/cnr')