New resource generator for REST Apis
diff --git a/views/ngXosLib/xosHelpers/src/xosHelpers.module.js b/views/ngXosLib/xosHelpers/src/xosHelpers.module.js
index c4b40f1..eb9222c 100644
--- a/views/ngXosLib/xosHelpers/src/xosHelpers.module.js
+++ b/views/ngXosLib/xosHelpers/src/xosHelpers.module.js
@@ -1,36 +1,33 @@
(function() {
- 'use strict';
- console.log('XOS Helpers Module')
- angular.module('bugSnag', []).factory('$exceptionHandler', function () {
- return function (exception, cause) {
- if( window.Bugsnag ){
- Bugsnag.notifyException(exception, {diagnostics:{cause: cause}});
- }
- else{
- console.error(exception, cause, exception.stack);
- }
- };
- });
+ 'use strict';
+ console.log('XOS Helpers Module')
+ angular.module('bugSnag', []).factory('$exceptionHandler', function () {
+ return function (exception, cause) {
+ if( window.Bugsnag ){
+ Bugsnag.notifyException(exception, {diagnostics: {cause: cause}});
+ }
+ else{
+ console.error(exception, cause, exception.stack);
+ }
+ };
+ });
- angular
- .module('xos.helpers',[
- 'ngCookies',
- 'ngResource',
- 'xos.xos',
- 'xos.hpcapi',
- 'xos.xoslib',
- 'bugSnag',
- 'xos.uiComponents'
- ])
- .config(config);
+ angular
+ .module('xos.helpers', [
+ 'ngCookies',
+ 'ngResource',
+ 'bugSnag',
+ 'xos.uiComponents'
+ ])
+ .config(config);
- function config($httpProvider, $interpolateProvider, $resourceProvider) {
- $httpProvider.interceptors.push('SetCSRFToken');
+ function config($httpProvider, $interpolateProvider, $resourceProvider) {
+ $httpProvider.interceptors.push('SetCSRFToken');
- $interpolateProvider.startSymbol('{$');
- $interpolateProvider.endSymbol('$}');
+ $interpolateProvider.startSymbol('{$');
+ $interpolateProvider.endSymbol('$}');
- // NOTE http://www.masnun.com/2013/09/18/django-rest-framework-angularjs-resource-trailing-slash-problem.html
- $resourceProvider.defaults.stripTrailingSlashes = false;
- }
+ // NOTE http://www.masnun.com/2013/09/18/django-rest-framework-angularjs-resource-trailing-slash-problem.html
+ $resourceProvider.defaults.stripTrailingSlashes = false;
+ }
})();
\ No newline at end of file