diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 15:54:32 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 15:54:32 +0100 |
commit | 676b8dd18742875ae07827792ed88d2b5bb3afb7 (patch) | |
tree | cd4368012b40ff6fa28cefb85e7ab49c729041ca /js/app | |
parent | 62b6bd485009b5dbb85b50e634ea94aa177d8d42 (diff) |
first stab at recommended sites
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/Config.js | 12 | ||||
-rw-r--r-- | js/app/Run.js | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/js/app/Config.js b/js/app/Config.js index 2825c43e1..5a8bdd54c 100644 --- a/js/app/Config.js +++ b/js/app/Config.js @@ -15,7 +15,8 @@ app.config(function ($routeProvider, $provide, $httpProvider) { FOLDER: 1, STARRED: 2, SUBSCRIPTIONS: 3, - SHARED: 4 + SHARED: 4, + EXPLORE: 5 }; // constants @@ -97,6 +98,15 @@ app.config(function ($routeProvider, $provide, $httpProvider) { templateUrl: 'content.html', resolve: getResolve(feedType.FOLDER), type: feedType.FOLDER + }).when('/explore', { + controller: 'ExploreController as Explore', + templateUrl: 'explore.html', + resolve: { + sites: /* @ngInject */ function ($http, BASE_URL) { + return $http.get(BASE_URL + '/explore'); + } + }, + type: feedType.EXPLORE }).when('/shortcuts', { templateUrl: 'shortcuts.html', type: -1 diff --git a/js/app/Run.js b/js/app/Run.js index 9f4cc24ad..aeca66298 100644 --- a/js/app/Run.js +++ b/js/app/Run.js @@ -49,6 +49,10 @@ app.run(function ($rootScope, $location, $http, $q, $interval, Loading, url = '/items/starred'; break; + case FEED_TYPE.EXPLORE: + url = '/explore'; + break; + default: url = '/items'; } |