mirror of https://github.com/portainer/portainer
24 lines
553 B
JavaScript
24 lines
553 B
JavaScript
angular
|
|
.module('portainer.extensions.rbac', ['ngResource'])
|
|
.constant('API_ENDPOINT_ROLES', 'api/roles')
|
|
.config([
|
|
'$stateRegistryProvider',
|
|
function ($stateRegistryProvider) {
|
|
'use strict';
|
|
|
|
var roles = {
|
|
name: 'portainer.roles',
|
|
url: '/roles',
|
|
views: {
|
|
'content@': {
|
|
templateUrl: './views/roles/roles.html',
|
|
controller: 'RolesController',
|
|
controllerAs: 'ctrl',
|
|
},
|
|
},
|
|
};
|
|
|
|
$stateRegistryProvider.register(roles);
|
|
},
|
|
]);
|