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.

26 lines
775 B

8 years ago
  1. angular.module('topologyManager', ['ngRoute','restangular','ui.bootstrap'])
  2. .config(function($routeProvider, $locationProvider) {
  3. $locationProvider.html5Mode(true);
  4. $routeProvider
  5. .when('/', {
  6. templateUrl: 'partials/index.html',
  7. controller: 'IndexCtrl',
  8. })
  9. _.contains = _.includes;
  10. })
  11. .factory('VIRLRestangular', function(Restangular) {
  12. return Restangular.withConfig(function(RestangularConfigurer) {
  13. RestangularConfigurer.setBaseUrl('http://192.168.76.210:19399');
  14. RestangularConfigurer.setFullResponse(true);
  15. });
  16. })
  17. .factory('CustomSimRestangular', function(Restangular) {
  18. return Restangular.withConfig(function(RestangularConfigurer) {
  19. RestangularConfigurer.setBaseUrl('/virl-scheduler/api/');
  20. });
  21. })