-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathapp.js
More file actions
19 lines (18 loc) · 738 Bytes
/
Copy pathapp.js
File metadata and controls
19 lines (18 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.alumnos',
'myApp.profesores',
'myApp.ciclosformativos',
'myApp.asignaturas',
'myApp.usuarios',
'myApp.home',
'myApp.participantes'
])
.config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {
//$locationProvider.hashPrefix('!');
$routeProvider.otherwise({redirectTo: '/'}); //'/login'
}])
//.constant('url', 'http://localhost/lumen/public/api/v1/') // FIXME: http://{ip_ies-sanclemente}/lumen/public/api/v1/
.constant ('url', 'http://10.21.1.100/lumen/public/api/v1/') // Si el servicio web estuviese instalado en local, dejar: http://localhost/lumen/public/api/v1/