hotspots: Add backend support for tutorial hotspots.

This commit adds the backend support for a new style of tutorial which
allows for highlighting of multiple areas of the page with hotspots that
disappear when clicked by the user.
This commit is contained in:
Amy Liu
2017-01-23 16:48:35 -08:00
committed by Tim Abbott
parent 33c130a603
commit 6f061beb46
16 changed files with 220 additions and 2 deletions

View File

@@ -298,6 +298,10 @@ v1_api_and_json_patterns = [
{'PUT': 'zerver.views.user_settings.set_avatar_backend',
'DELETE': 'zerver.views.user_settings.delete_avatar_backend'}),
# users/me/hotspots -> zerver.views.hotspots
url(r'^users/me/hotspots$', rest_dispatch,
{'POST': 'zerver.views.hotspots.mark_hotspot_as_read'}),
# settings -> zerver.views.user_settings
url(r'^settings/display$', rest_dispatch,
{'PATCH': 'zerver.views.user_settings.update_display_settings_backend'}),