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('/panel', {
|
|
|
|
url: '/panel',
|
2017-10-14 15:16:58 -04:00
|
|
|
templateUrl: '/views/shimapan-panel/panel-home.html'
|
2017-10-11 20:26:07 -04:00
|
|
|
}).state('/panel/api', {
|
|
|
|
url: '/panel/api',
|
2017-10-14 15:16:58 -04:00
|
|
|
templateUrl: '/views/shimapan-panel/panel-api.html'
|
2017-10-11 20:26:07 -04:00
|
|
|
});
|
|
|
|
}]);
|