mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:51:55 +00:00
commit
40ab5cb467
@ -43,6 +43,7 @@ define(['underscore', 'mifosX'], function() {
|
||||
return list.concat(_.map(components[group], function(name) { return group + "/" + name; }));
|
||||
}, [
|
||||
'routes',
|
||||
'setHeaders',
|
||||
'webstorage-configuration'
|
||||
]));
|
||||
});
|
||||
|
||||
9
js/setHeaders.js
Normal file
9
js/setHeaders.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function(mifosX) {
|
||||
var defineHeaders = function($httpProvider) {
|
||||
$httpProvider.defaults.headers.common['X-Mifos-Platform-TenantId'] = 'default';
|
||||
$httpProvider.defaults.headers.common['Content-Type'] = 'application/json; charset=utf-8';
|
||||
};
|
||||
mifosX.ng.application.config(defineHeaders).run(function($log) {
|
||||
$log.info("http deaders are set");
|
||||
});
|
||||
}(mifosX || {}));
|
||||
Loading…
Reference in New Issue
Block a user