summaryrefslogtreecommitdiffstats
path: root/js/app
diff options
context:
space:
mode:
authorAurélien <dav.aurelien@gmail.com>2021-01-26 14:41:46 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit6ebe676911584bf86d246c4656d42a176f08f242 (patch)
tree7d0e572e46f2dfe80c2f363dc561fc590b3f584f /js/app
parent08171bb42de718cda797462b9f5de029ce82afb9 (diff)
add root for access shared items
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'js/app')
-rw-r--r--js/app/Config.js6
-rw-r--r--js/app/Run.js4
2 files changed, 10 insertions, 0 deletions
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;