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

67 lines
2.5 KiB
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'
})
2016-05-23 19:06:50 +02:00
.when('/task/detail/:gid', {
templateUrl: 'views/task-detail.html',
controller: 'TaskDetailController'
})
.when('/settings/ariang', {
templateUrl: 'views/settings-ariang.html',
controller: 'AriaNgSettingsController'
})
2016-05-17 17:13:47 +02:00
.when('/settings/aria2/basic', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
.when('/settings/aria2/http-ftp-sftp', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
.when('/settings/aria2/http', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
.when('/settings/aria2/ftp-sftp', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
2016-05-17 17:13:47 +02:00
.when('/settings/aria2/bt', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
.when('/settings/aria2/metalink', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
2016-05-17 17:13:47 +02:00
.when('/settings/aria2/rpc', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
.when('/settings/aria2/advanced', {
templateUrl: 'views/settings-aria2.html',
controller: 'Aria2SettingsController'
})
2016-05-22 05:47:47 +02:00
.when('/status', {
templateUrl: 'views/status.html',
controller: 'Aria2StatusController'
})
2016-05-13 18:09:12 +02:00
.otherwise({
redirectTo: '/downloading'
});
}]);
})();