angular.module('topologyManager', ['ngRoute','restangular','ui.bootstrap']) .config(function($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); $routeProvider .when('/', { templateUrl: 'partials/index.html', controller: 'IndexCtrl', }) _.contains = _.includes; }) .factory('VIRLRestangular', function(Restangular) { return Restangular.withConfig(function(RestangularConfigurer) { RestangularConfigurer.setBaseUrl('http://192.168.76.210:19399'); RestangularConfigurer.setFullResponse(true); }); }) .factory('CustomSimRestangular', function(Restangular) { return Restangular.withConfig(function(RestangularConfigurer) { RestangularConfigurer.setBaseUrl('/virl-scheduler/api/'); }); })