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.

33 lines
1.1 KiB

4 years ago
  1. var serverURL = "/public/index.php/api";
  2. var app = angular.module('sobic', ["ngCookies",'ui.bootstrap', 'ngRoute', 'ngAnimate', 'angular-parallax', 'ngFileUpload']);
  3. app.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
  4. $locationProvider.html5Mode({
  5. enabled: true,
  6. requireBase: false
  7. }).hashPrefix = '!';
  8. $routeProvider.when('/', {
  9. templateUrl: 'partials/pages/home.html',
  10. controller: 'HomeController'
  11. }).when('/users/show', {
  12. templateUrl: 'partials/user/show.html',
  13. controller: 'ListUsersController'
  14. }).when('/contact', {
  15. templateUrl: 'partials/pages/contact.html',
  16. controller: 'ContactController'
  17. /* Es importante que respetes estos comentarios para general scaffold sin probremas. */
  18. /** Scaffold main.js **/
  19. }).when('/personals', {
  20. templateUrl: 'partials/personal/show.html',
  21. controller: 'PersonalController'
  22. }).when('/personals/form', {
  23. templateUrl: 'partials/personal/form.html',
  24. controller: 'PersonalFormController'
  25. }).when('/personals/form/:id', {
  26. templateUrl: 'partials/personal/form.html',
  27. controller: 'PersonalFormController'
  28. }).otherwise({
  29. redirectTo: '/'
  30. });
  31. }]);