mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 14:26:51 +00:00
added logic to read sub domain and set tenant id
This commit is contained in:
parent
917d7bed59
commit
608ba05eea
@ -15,7 +15,7 @@
|
||||
else{
|
||||
// For multi tenant hosting
|
||||
var hostname = window.location.hostname;
|
||||
domains = hostname.spli('.');
|
||||
domains = hostname.split('.');
|
||||
|
||||
if(domains[0] == "demo"){
|
||||
$httpProvider.defaults.headers.common['X-Mifos-Platform-TenantId'] = TENANT;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user