This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/app/scripts/core/router.js

27 lines
856 B
JavaScript
Raw Normal View History

2016-05-13 18:09:12 +02:00
(function () {
'use strict';
angular.module('ariaNg').config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/downloading', {
templateUrl: 'views/list.html',
controller: 'DownloadListController'
})
2016-05-16 15:20:52 +02:00
.when('/waiting', {
2016-05-13 18:09:12 +02:00
templateUrl: 'views/list.html',
controller: 'DownloadListController'
})
.when('/stopped', {
templateUrl: 'views/list.html',
controller: 'DownloadListController'
})
.when('/settings/ariang', {
templateUrl: 'views/settings-ariang.html',
controller: 'AriaNgSettingsController'
})
2016-05-13 18:09:12 +02:00
.otherwise({
redirectTo: '/downloading'
});
}]);
})();