2020-04-10 21:54:53 +00:00
|
|
|
angular
|
|
|
|
.module('portainer.extensions.rbac', ['ngResource'])
|
2019-05-24 06:04:58 +00:00
|
|
|
.constant('API_ENDPOINT_ROLES', 'api/roles')
|
2020-04-10 21:54:53 +00:00
|
|
|
.config([
|
|
|
|
'$stateRegistryProvider',
|
|
|
|
function ($stateRegistryProvider) {
|
|
|
|
'use strict';
|
2019-05-24 06:04:58 +00:00
|
|
|
|
2020-04-10 21:54:53 +00:00
|
|
|
var roles = {
|
|
|
|
name: 'portainer.roles',
|
|
|
|
url: '/roles',
|
|
|
|
views: {
|
|
|
|
'content@': {
|
|
|
|
templateUrl: './views/roles/roles.html',
|
|
|
|
controller: 'RolesController',
|
|
|
|
controllerAs: 'ctrl',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2019-05-24 06:04:58 +00:00
|
|
|
|
2020-04-10 21:54:53 +00:00
|
|
|
$stateRegistryProvider.register(roles);
|
|
|
|
},
|
|
|
|
]);
|