sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost-frontend/public/app/host/index.js

100 lines
1.9 KiB
JavaScript

'use strict';
angular.module('warehost')
.config(['$stateProvider',function ($stateProvider) {
$stateProvider
.state('app.host', {
url:'/host'
})
.state('app.host.index', {
url:'/',
views:{
'@app':{
templateUrl: 'app/home.html',
controller:function(alert){
alert.set({});
}
}
}
})
.state('app.host.signup', {
url:'/signup',
views:{
'@app':{
templateUrl: 'app/host/signup.html',
controller:'SignupHostCtrl'
}
}
})
.state('app.host.domain', {
url:'/domain',
views:{
'@app':{
templateUrl: 'app/host/domain.html',
controller:'DomainHostCtrl'
}
}
})
.state('app.host.web', {
url:'/domain/:domainid/web',
views:{
'@app':{
templateUrl: 'app/host/web.html',
controller:'WebDomainHostCtrl'
}
}
})
.state('app.host.mail', {
url:'/domain/:domainid/mail',
views:{
'@app':{
templateUrl: 'app/host/mail.html',
controller:'MailDomainHostCtrl'
}
}
})
.state('app.host.database', {
url:'/database',
views:{
'@app':{
templateUrl: 'app/host/database.html',
controller:'DatabaseHostCtrl'
}
}
})
.state('app.host.A', {
url:'/admin',
views:{
'@app':{
templateUrl: 'app/admin.html',
}
}
})
.state('app.host.A.profil', {
url:'/profil',
views:{
'@app':{
templateUrl: 'app/host/admin/profil.html',
controller:'ProfilAdminHostCtrl'
}
}
})
.state('app.host.A.domain', {
url:'/domain',
views:{
'@app':{
templateUrl: 'app/host/admin/domain.html',
controller:'DomainAdminHostCtrl'
}
}
})
.state('app.host.A.database', {
url:'/database',
views:{
'@app':{
templateUrl: 'app/host/admin/database.html',
controller:'DatabaseAdminHostCtrl'
}
}
});
}]);