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.
2016-08-14 13:37:26 +02:00
|
|
|
'use strict';
|
|
|
|
angular.module('warehost')
|
|
|
|
.config(['$stateProvider',function ($stateProvider) {
|
|
|
|
$stateProvider
|
|
|
|
.state('app', {
|
|
|
|
templateUrl: 'app/main.html',
|
|
|
|
controller: 'MainCtrl'
|
|
|
|
})
|
|
|
|
.state('app.index', {
|
|
|
|
url:'/',
|
2016-08-17 22:35:25 +02:00
|
|
|
templateUrl: 'app/home.html',
|
|
|
|
controller:function(alert){
|
|
|
|
alert.set({});
|
|
|
|
}
|
2016-08-14 13:37:26 +02:00
|
|
|
})
|
|
|
|
.state('app.L', {
|
|
|
|
templateUrl: 'app/loggedin.html'
|
|
|
|
})
|
2016-09-11 18:40:03 +02:00
|
|
|
.state('app.L.setting', {
|
2016-08-14 13:37:26 +02:00
|
|
|
url:'/settings',
|
2016-09-11 18:40:03 +02:00
|
|
|
templateUrl: 'app/setting.html',
|
|
|
|
controller: 'SettingCtrl'
|
2016-08-14 13:37:26 +02:00
|
|
|
})
|
2016-09-11 18:40:03 +02:00
|
|
|
.state('app.L.invite', {
|
2016-08-14 13:37:26 +02:00
|
|
|
url:'/invites',
|
2016-09-11 18:40:03 +02:00
|
|
|
templateUrl: 'app/invite.html',
|
|
|
|
controller: 'InviteCtrl'
|
|
|
|
})
|
|
|
|
.state('app.A', {
|
|
|
|
templateUrl: 'app/admin.html'
|
|
|
|
})
|
|
|
|
.state('app.A.user', {
|
|
|
|
url:'/user',
|
|
|
|
templateUrl: 'app/user.html',
|
|
|
|
controller: 'UserCtrl'
|
2016-08-14 13:37:26 +02:00
|
|
|
});
|
|
|
|
}]);
|