mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
No need to put the before_request down there
This commit is contained in:
@@ -158,13 +158,12 @@ def init_app(application):
|
|||||||
application.after_request(useful_headers_after_request)
|
application.after_request(useful_headers_after_request)
|
||||||
application.after_request(save_service_after_request)
|
application.after_request(save_service_after_request)
|
||||||
application.before_request(load_service_before_request)
|
application.before_request(load_service_before_request)
|
||||||
|
application.before_request(request_helper.check_proxy_header_before_request)
|
||||||
|
|
||||||
@application.context_processor
|
@application.context_processor
|
||||||
def _attach_current_service():
|
def _attach_current_service():
|
||||||
return {'current_service': current_service}
|
return {'current_service': current_service}
|
||||||
|
|
||||||
application.before_request(request_helper.check_proxy_header_before_request)
|
|
||||||
|
|
||||||
@application.before_request
|
@application.before_request
|
||||||
def record_start_time():
|
def record_start_time():
|
||||||
g.start = monotonic()
|
g.start = monotonic()
|
||||||
|
|||||||
Reference in New Issue
Block a user