harbor/static/ng/resources/js/components/details/details.config.js

31 lines
789 B
JavaScript
Raw Normal View History

2016-04-18 10:33:30 +02:00
(function() {
'use strict';
angular
.module('harbor.details')
.config(routeConfig);
function routeConfig($routeProvider) {
$routeProvider
.when('/repositories', {
templateUrl: '/static/ng/resources/js/layout/repository/repository.controller.html',
controller: 'RepositoryController',
controllerAs: 'vm'
})
.when('/users', {
templateUrl: '/static/ng/resources/js/layout/user/user.controller.html',
controller: 'UserController',
controllerAs: 'vm'
})
.when('/logs', {
templateUrl: '/static/ng/resources/js/layout/log/log.controller.html',
controller: 'LogController',
controllerAs: 'vm'
})
.otherwise({
2016-04-20 12:09:35 +02:00
redirectTo: '/'
});
}
2016-04-18 10:33:30 +02:00
})();