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:
Tim Abbott
2021-04-07 21:23:51 -07:00
committed by Tim Abbott
parent fdf44f19b2
commit 1470dd9105
6 changed files with 2 additions and 41 deletions

View File

@@ -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)