1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-09-21 19:28:40 -04:00
shimapan/public/js/shimapan-panel/routes.js

30 lines
1.2 KiB
JavaScript
Raw Normal View History

2017-10-11 20:26:07 -04:00
angular.module('PanelRoutes', ['ui.router']).config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function($stateProvider, $urlRouterProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$urlRouterProvider.otherwise('/panel');
$stateProvider
.state('dashboard', {
2017-10-11 20:26:07 -04:00
url: '/panel',
2017-10-18 13:31:08 -04:00
templateUrl: '/views/shimapan-panel/panel-dash.html'
}).state('search', {
url: '/panel/search',
templateUrl: '/views/shimapan-panel/panel-search.html'
}).state('api', {
url: '/panel/api',
2017-10-14 15:16:58 -04:00
templateUrl: '/views/shimapan-panel/panel-api.html'
}).state('invites', {
url: '/panel/invites',
templateUrl: '/views/shimapan-panel/panel-invites.html'
}).state('stats', {
url: '/panel/stats',
templateUrl: '/views/shimapan-panel/panel-stats.html'
}).state('users', {
url: '/panel/users',
templateUrl: '/views/shimapan-panel/panel-users.html'
}).state('home', {
onEnter: ['$window', function($window) {
$window.location.href = '/home';
}]
2017-10-11 20:26:07 -04:00
});
}]);