config: add app registry feature flag
This commit is contained in:
parent
102c671587
commit
4614419e53
3 changed files with 10 additions and 4 deletions
10
registry.py
10
registry.py
|
@ -2,11 +2,12 @@ import logging
|
|||
import logging.config
|
||||
import os
|
||||
|
||||
import endpoints.decorated # Note: We need to import this module to make sure the decorators are registered.
|
||||
import features
|
||||
|
||||
from app import app as application
|
||||
|
||||
# Note: We need to import this module to make sure the decorators are registered.
|
||||
import endpoints.decorated
|
||||
|
||||
from endpoints.appr import appr_bp
|
||||
from endpoints.v1 import v1_bp
|
||||
from endpoints.v2 import v2_bp
|
||||
|
||||
|
@ -15,3 +16,6 @@ if os.environ.get('DEBUGLOG') == 'true':
|
|||
|
||||
application.register_blueprint(v1_bp, url_prefix='/v1')
|
||||
application.register_blueprint(v2_bp, url_prefix='/v2')
|
||||
|
||||
if features.APP_REGISTRY:
|
||||
application.register_blueprint(appr_bp, url_prefix='/cnr')
|
||||
|
|
Reference in a new issue