blob: 1f73be10fa5a738576f0b8a0fa2f81beb292df9c [file] [log] [blame]
Matteo Scandolo817386b2015-11-04 16:07:09 +01001(function() {
2 'use strict';
3
4 angular
5 .module('xos.helpers',[
Matteo Scandolo3c217ad2015-11-05 16:02:11 +01006 'ngCookies',
7 'xos.xos',
8 'xos.hpcapi',
9 'xos.xoslib'
Matteo Scandolo817386b2015-11-04 16:07:09 +010010 ])
11 .config(config);
12
13 function config($httpProvider, $interpolateProvider, $resourceProvider) {
14 $httpProvider.interceptors.push('SetCSRFToken');
15
16 $interpolateProvider.startSymbol('{$');
17 $interpolateProvider.endSymbol('$}');
18
19 // NOTE http://www.masnun.com/2013/09/18/django-rest-framework-angularjs-resource-trailing-slash-problem.html
20 $resourceProvider.defaults.stripTrailingSlashes = false;
21 }
22})();