(token)
| 87 | |
| 88 | |
| 89 | def process_successful_response(token): |
| 90 | resp = Response(json=token, status=http_client.CREATED) |
| 91 | # NOTE: gunicon fails and throws an error if header value is not a string (e.g. if it's None) |
| 92 | resp.headers["X-API-URL"] = api_utils.get_base_public_api_url() |
| 93 | return resp |
| 94 | |
| 95 | |
| 96 | token_controller = TokenController() |