2016-09-03 13:24:54 +02:00
|
|
|
'use strict';
|
|
|
|
angular.module('warehost')
|
|
|
|
.config(['$stateProvider',function ($stateProvider) {
|
|
|
|
$stateProvider
|
|
|
|
.state('app.web', {
|
|
|
|
url:'/web',
|
|
|
|
views:{
|
2016-09-03 16:30:05 +02:00
|
|
|
'menu':{templateUrl:'app/web/menu.html',controller:'MenuWebCtrl'}
|
2016-09-03 13:24:54 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.web.index', {
|
|
|
|
url:'/',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
2016-09-03 16:30:05 +02:00
|
|
|
templateUrl: 'app/web/list.html',
|
|
|
|
controller:'ListWebCtrl'
|
2016-09-03 13:24:54 +02:00
|
|
|
}
|
|
|
|
}
|
2016-09-03 16:30:05 +02:00
|
|
|
})
|
|
|
|
.state('app.webS', {
|
|
|
|
url:'/web/:websiteid',
|
|
|
|
views:{
|
|
|
|
'menu':{templateUrl:'app/web/menu.html',controller:'MenuWebCtrl'}
|
|
|
|
}
|
2016-09-11 18:40:03 +02:00
|
|
|
})
|
|
|
|
.state('app.webS.menu', {
|
|
|
|
url:'/menu',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/web/webmenu.html',
|
|
|
|
controller:'WebmenuWebCtrl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.webS.domain', {
|
|
|
|
url:'/domain',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/web/domain.html',
|
|
|
|
controller:'DomainWebCtrl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.webS.page', {
|
|
|
|
url:'/page',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/web/page.html',
|
|
|
|
controller:'PageWebCtrl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.webS.permission', {
|
|
|
|
url:'/permission',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/web/permission.html',
|
|
|
|
controller:'PermissionWebCtrl'
|
|
|
|
}
|
|
|
|
}
|
2016-09-03 13:24:54 +02:00
|
|
|
});
|
|
|
|
}]);
|