From 676b8dd18742875ae07827792ed88d2b5bb3afb7 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 19 Nov 2014 15:54:32 +0100 Subject: first stab at recommended sites --- js/app/Config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'js/app/Config.js') 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 -- cgit v1.2.3