A simple file sharing site with an easy to use API and online panel.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2KB

  1. angular.module('PanelRoutes', ['ui.router']).config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function($stateProvider, $urlRouterProvider, $locationProvider) {
  2. $locationProvider.html5Mode(true);
  3. $urlRouterProvider.otherwise('/panel');
  4. $stateProvider
  5. .state('dashboard', {
  6. url: '/panel',
  7. templateUrl: '/views/shimapan-panel/panel-dash.html'
  8. }).state('search', {
  9. url: '/panel/search',
  10. templateUrl: '/views/shimapan-panel/panel-search.html'
  11. }).state('api', {
  12. url: '/panel/api',
  13. templateUrl: '/views/shimapan-panel/panel-api.html'
  14. }).state('invites', {
  15. url: '/panel/invites',
  16. templateUrl: '/views/shimapan-panel/panel-invites.html'
  17. }).state('stats', {
  18. url: '/panel/stats',
  19. templateUrl: '/views/shimapan-panel/panel-stats.html'
  20. }).state('users', {
  21. url: '/panel/users',
  22. templateUrl: '/views/shimapan-panel/panel-users.html'
  23. }).state('home', {
  24. onEnter: ['$window', function($window) {
  25. $window.location.href = '/home';
  26. }]
  27. });
  28. }]);