mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Added back feature flag injection entry point logic as a comment
This commit is contained in:
@@ -196,6 +196,20 @@ def create_app(application):
|
|||||||
def inject_is_api_down():
|
def inject_is_api_down():
|
||||||
return {"is_api_down": is_api_down()}
|
return {"is_api_down": is_api_down()}
|
||||||
|
|
||||||
|
# @application.context_processor
|
||||||
|
# def inject_feature_flags():
|
||||||
|
# this is where feature flags can be easily added as a dictionary within context
|
||||||
|
# feature_socket_enabled = application.config.get("FEATURE_SOCKET_ENABLED", True)
|
||||||
|
|
||||||
|
# current_app.logger.info(
|
||||||
|
# f"FEATURE_SOCKET_ENABLED value in __init__.py coming \
|
||||||
|
# from config is {application.config.get('FEATURE_SOCKET_ENABLED')} and \
|
||||||
|
# the ending value is {feature_socket_enabled}"
|
||||||
|
# )
|
||||||
|
# return dict(
|
||||||
|
# FEATURE_SOCKET_ENABLED=feature_socket_enabled,
|
||||||
|
# )
|
||||||
|
|
||||||
@application.context_processor
|
@application.context_processor
|
||||||
def inject_initial_signin_url():
|
def inject_initial_signin_url():
|
||||||
ttl = 24 * 60 * 60
|
ttl = 24 * 60 * 60
|
||||||
|
|||||||
Reference in New Issue
Block a user