mirror of
https://github.com/goharbor/harbor
synced 2025-04-28 08:13:16 +00:00
31 lines
789 B
JavaScript
31 lines
789 B
JavaScript
(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({
|
|
redirectTo: '/'
|
|
});
|
|
}
|
|
|
|
})(); |