Browse Source

HUE-6077 [frontend] Added /logout route

Enrico Berti 8 years ago
parent
commit
b638272
1 changed files with 3 additions and 0 deletions
  1. 3 0
      desktop/core/src/desktop/templates/hue.mako

+ 3 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -769,6 +769,9 @@ ${ assist.assistPanel() }
           { url: '/500', app: '500' },
           { url: '/500', app: '500' },
           { url: '/about/', app: 'admin_wizard' },
           { url: '/about/', app: 'admin_wizard' },
           { url: '/about/admin_wizard', app: 'admin_wizard' },
           { url: '/about/admin_wizard', app: 'admin_wizard' },
+          { url: '/accounts/logout', app: function () {
+            location.href = '/accounts/logout';
+          }},
           { url: '/dashboard/admin/collections', app: 'collections' },
           { url: '/dashboard/admin/collections', app: 'collections' },
           { url: '/dashboard/*', app: 'dashboard' },
           { url: '/dashboard/*', app: 'dashboard' },
           { url: '/desktop/dump_config', app: 'dump_config' },
           { url: '/desktop/dump_config', app: 'dump_config' },