mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 08:10:50 +01:00
40 lines
846 B
JavaScript
40 lines
846 B
JavaScript
define([
|
|
'app',
|
|
'socketio',
|
|
'services/user',
|
|
'routes/playbooks',
|
|
'routes/identities',
|
|
'services/playbooks'
|
|
], function(app, io) {
|
|
app.config(function($stateProvider, $urlRouterProvider, $locationProvider, $couchPotatoProvider) {
|
|
$locationProvider.html5Mode({
|
|
enabled: true,
|
|
requireBase: false
|
|
})
|
|
|
|
$urlRouterProvider.otherwise('');
|
|
|
|
$stateProvider
|
|
.state('homepage', {
|
|
url: '/',
|
|
pageTitle: 'Homepage',
|
|
templateUrl: "/view/homepage"
|
|
})
|
|
|
|
.state('logout', {
|
|
url: '/logout',
|
|
pageTitle: 'Log Out',
|
|
controller: function($scope) {
|
|
window.location = "/logout";
|
|
}
|
|
})
|
|
})
|
|
.run(function($rootScope, $state, $stateParams, $http, user, playbooks) {
|
|
$rootScope.$state = $state
|
|
$rootScope.$stateParams = $stateParams
|
|
|
|
user.getUser(function() {});
|
|
playbooks.getPlaybooks(function() {});
|
|
})
|
|
})
|