Compare commits

...

1 Commits

Author SHA1 Message Date
46de0401ec add a health check to ussd 2021-08-09 11:43:47 -07:00

View File

@ -57,6 +57,10 @@ def application(env, start_response):
if get_request_endpoint(env) == '/pin':
return handle_pin_requests(env, session, errors_headers, start_response)
if get_request_endpoint(env) == '/healthz':
start_response('200 OK', headers)
return [b'']
response, message = locked_accounts(env, session)
response_bytes, headers = with_content_headers(headers, response)
start_response(message, headers)