mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-23 00:31:03 +01:00
04d0d9e4f9
- Improved login failing
33 lines
813 B
JavaScript
33 lines
813 B
JavaScript
app.config(function ($stateProvider, $urlRouterProvider, $locationProvider, $couchPotatoProvider) {
|
|
$locationProvider.html5Mode({
|
|
enabled: true,
|
|
requireBase: false
|
|
});
|
|
|
|
$urlRouterProvider.otherwise('/');
|
|
|
|
$stateProvider
|
|
.state('dashboard', {
|
|
url: '/',
|
|
pageTitle: 'Dashboard',
|
|
templateUrl: '/tpl/dashboard.html',
|
|
controller: 'DashboardCtrl',
|
|
resolve: {
|
|
$d: $couchPotatoProvider.resolveDependencies(['controllers/dashboard'])
|
|
}
|
|
})
|
|
.state('users', {
|
|
url: '/users',
|
|
pageTitle: 'Users',
|
|
templateUrl: "/tpl/users/list.html",
|
|
controller: 'UsersCtrl',
|
|
resolve: {
|
|
$d: $couchPotatoProvider.resolve(['controllers/users'])
|
|
}
|
|
});
|
|
});
|
|
|
|
app.run(function($rootScope, $state, $stateParams, $http) {
|
|
$rootScope.$state = $state;
|
|
$rootScope.$stateParams = $stateParams;
|
|
}); |