From 6ebe676911584bf86d246c4656d42a176f08f242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Tue, 26 Jan 2021 14:41:46 +0100 Subject: add root for access shared items Signed-off-by: Marco Nassabain --- js/app/Config.js | 6 ++++++ js/app/Run.js | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'js/app') diff --git a/js/app/Config.js b/js/app/Config.js index f7c62e7ae..8ac503b44 100644 --- a/js/app/Config.js +++ b/js/app/Config.js @@ -191,6 +191,12 @@ app.config(function ($routeProvider, $provide, $httpProvider, $locationProvider) resolve: getItemResolve(feedType.STARRED), type: feedType.STARRED }) + .when('/items/shared', { + controller: 'ContentController as Content', + templateUrl: 'content.html', + resolve: getItemResolve(feedType.SHARED), + type: feedType.SHARED + }) .when('/items/unread', { controller: 'ContentController as Content', templateUrl: 'content.html', diff --git a/js/app/Run.js b/js/app/Run.js index 1a1572864..6aa79f7dd 100644 --- a/js/app/Run.js +++ b/js/app/Run.js @@ -45,6 +45,10 @@ app.run(function ($rootScope, $location, $http, $q, $interval, $route, Loading, url = '/items/starred'; break; + case FEED_TYPE.SHARED: + url = '/items/shared'; + break; + case FEED_TYPE.EXPLORE: url = '/explore'; break; -- cgit v1.2.3