mirror of
https://github.com/Foltik/Shimapan
synced 2024-12-25 11:55:25 -05:00
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
var angular = require('angular');
|
|
|
|
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/panel/dash.html'
|
|
}).state('search', {
|
|
url: '/panel/search',
|
|
templateUrl: '/views/panel/search.html'
|
|
}).state('keys', {
|
|
url: '/panel/keys',
|
|
templateUrl: '/views/panel/keys.html'
|
|
}).state('invites', {
|
|
url: '/panel/invites',
|
|
templateUrl: '/views/panel/invites.html'
|
|
}).state('stats', {
|
|
url: '/panel/stats',
|
|
templateUrl: '/views/panel/stats.html'
|
|
}).state('users', {
|
|
url: '/panel/users',
|
|
templateUrl: '/views/panel/users.html'
|
|
}).state('home', {
|
|
onEnter: ['$window', function($window) {
|
|
$window.location.href = '/home';
|
|
}]
|
|
});
|
|
}]); |