webapp.scripts.app.entities.projects.projects.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of centraldogma-server Show documentation
Show all versions of centraldogma-server Show documentation
Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2 (centraldogma-server)
The newest version!
'use strict';
angular.module('CentralDogmaAdmin')
.config(function ($stateProvider, CentralDogmaConstant) {
$stateProvider
.state('projects', {
parent: 'entity',
url: '/projects',
data: {},
views: {
'content@': {
templateUrl: 'scripts/app/entities/projects/projects.html',
controller: 'ProjectsController'
}
}
})
.state('projectNew', {
parent: 'entity',
url: '/new_project',
data: {
roles: [CentralDogmaConstant.LEVEL_USER]
},
views: {
'content@': {
templateUrl: 'scripts/app/entities/projects/project.new.html',
controller: 'ProjectNewController'
}
}
})
.state('project', {
parent: 'entity',
url: '/projects/:projectName',
data: {},
views: {
'content@': {
templateUrl: 'scripts/app/entities/projects/project.html',
controller: 'ProjectController'
}
}
});
});