1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-10 23:53:31 -05:00
shimapan/public/js/shimapan-panel/routes.js

14 lines
543 B
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('/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
});
}]);