1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-11 07:54:55 -05:00
shimapan/public/js/PanelRoutes.js
2017-10-11 20:26:07 -04:00

14 lines
513 B
JavaScript

angular.module('PanelRoutes', ['ui.router']).config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function($stateProvider, $urlRouterProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$urlRouterProvider.otherwise('/panel');
$stateProvider
.state('/panel', {
url: '/panel',
templateUrl: '/views/panel-home.html'
}).state('/panel/api', {
url: '/panel/api',
templateUrl: '/views/panel-api.html'
});
}]);