mirror of
https://github.com/Foltik/Shimapan
synced 2025-01-09 09:17:14 -05:00
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
angular.module('PanelRoutes', ['ui.router']).config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function($stateProvider, $urlRouterProvider, $locationProvider) {
|
|
$locationProvider.html5Mode(true);
|
|
|
|
$urlRouterProvider.otherwise('/panel');
|
|
|
|
$stateProvider
|
|
.state('dashboard', {
|
|
url: '/panel',
|
|
templateUrl: '/views/shimapan-panel/panel-home.html'
|
|
}).state('search', {
|
|
url: '/panel/search',
|
|
templateUrl: '/views/shimapan-panel/panel-search.html'
|
|
}).state('api', {
|
|
url: '/panel/api',
|
|
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';
|
|
}]
|
|
});
|
|
}]); |