mirror of https://github.com/portainer/portainer
20 lines
506 B
JavaScript
20 lines
506 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);
|
||
|
}]);
|