compatibility: Add a compatibility check to api_get_server_settings.

This should make it convenient for the mobile app to present errors of
the form "Your Zulip app is not new enough for this Zulip server".
This commit is contained in:
Jack Zhang
2018-12-05 17:49:34 -08:00
committed by Tim Abbott
parent 8711fe7bae
commit be9b6a6dee
4 changed files with 23 additions and 7 deletions

View File

@@ -590,7 +590,8 @@ urls += [
urls += [
# This json format view used by the mobile apps lists which
# authentication backends the server allows as well as details
# like the requested subdomains'd realm icon (if known).
# like the requested subdomains'd realm icon (if known) and
# server-specific compatibility.
url(r'^api/v1/server_settings', zerver.views.auth.api_get_server_settings),
# This is a deprecated old version of api/v1/server_settings that only returns auth backends.
url(r'^api/v1/get_auth_backends', zerver.views.auth.api_get_auth_backends,