mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
api: Delete ancient fetch_google_client_id endpoint.
This was used by the old native Zulip Android app (zulip/zulip-android). That app has been undeveloped for enough years that we believe it no longer functions; as a result, there's no reason to keep a prototype API endpoint for it (that we believe never worked).
This commit is contained in:
@@ -1057,13 +1057,6 @@ def json_fetch_api_key(
|
||||
return json_success({"api_key": api_key, "email": user_profile.delivery_email})
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
def api_fetch_google_client_id(request: HttpRequest) -> HttpResponse:
|
||||
if not settings.GOOGLE_CLIENT_ID:
|
||||
return json_error(_("GOOGLE_CLIENT_ID is not configured"), status=400)
|
||||
return json_success({"google_client_id": settings.GOOGLE_CLIENT_ID})
|
||||
|
||||
|
||||
@require_post
|
||||
def logout_then_login(request: HttpRequest, **kwargs: Any) -> HttpResponse:
|
||||
return django_logout_then_login(request, kwargs)
|
||||
|
||||
Reference in New Issue
Block a user