update base API URL (#3251)

update base api URL to new server https://demo.mifos.io
This commit is contained in:
Kiran 2020-08-15 01:37:30 +05:30 committed by GitHub
parent 22612924b5
commit 4c2a7a56a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -128,7 +128,7 @@ Our central development branch is `develop` , which should be clean and ready fo
- If the PR is for solving some Issue related to UI, post 2 pictures, first picture containing the earlier UI and the second picture containing the updated UI.
- Include the URLs to the views that are effected by the PR. For example, if the PR has some improvements in the clients page, have the URL information as: https://demo.openmf.org/newbeta/#/clients
- Include the URLs to the views that are effected by the PR. For example, if the PR has some improvements in the clients page, have the URL information as: https://demo.mifos.io/newbeta/#/clients
5. Please ensure that the code you write is well-tested.

View File

@ -52,7 +52,7 @@ module.exports = function(grunt) {
port: 9002,
hostname: 'localhost',
livereload: 35729,
open:'http://<%= connect.options.hostname %>:<%= connect.options.port %>?baseApiUrl=https://demo.openmf.org'
open:'http://<%= connect.options.hostname %>:<%= connect.options.port %>?baseApiUrl=https://demo.mifos.io'
},
livereload: {
options: {

View File

@ -5,7 +5,7 @@ This is the default web application built on top of the MifosX platform for the
## Online Demo
<a target="_blank" href="https://demo.openmf.org">Access the online demo version here</a>
<a target="_blank" href="https://demo.mifos.io">Access the online demo version here</a>
## Building from source
@ -84,7 +84,7 @@ Edit the value of property "security" in <a href="https://github.com/openMF/comm
### Connecting to a MifosX Platform running on a different host:
By default, when the app is running from the local filesystem, it will connect to the platform (fineract-provider REST API) deployed on demo.openmf.org.
By default, when the app is running from the local filesystem, it will connect to the platform (fineract-provider REST API) deployed on demo.mifos.io.
The app connects to the platform running on the same host/port when deployed on a server.
@ -96,7 +96,7 @@ If you want to connect to the API running elsewhere, then append the baseApiUrl
e.g. http://localhost:9002/?baseApiUrl=https://localhost:8443&tenantIdentifier=default
e.g. http://localhost:9002/?baseApiUrl=https://demo.openmf.org&tenantIdentifier=default
e.g. http://localhost:9002/?baseApiUrl=https://demo.mifos.io&tenantIdentifier=default
## Adding dependencies

View File

@ -2,11 +2,11 @@
(function (mifosX) {
var defineHeaders = function ($httpProvider, $translateProvider, ResourceFactoryProvider, HttpServiceProvider, $idleProvider, $keepaliveProvider, IDLE_DURATION, WARN_DURATION, KEEPALIVE_INTERVAL) {
var mainLink = getLocation(window.location.href);
var baseApiUrl = "https://demo.openmf.org";
var baseApiUrl = "https://demo.mifos.io";
var host = "";
var portNumber = "";
//accessing from openmf server
if (mainLink.hostname.indexOf('openmf.org') >= 0) {
if (mainLink.hostname.indexOf('mifos.io') >= 0) {
var hostname = window.location.hostname;
console.log('hostname---' + hostname);
domains = hostname.split('.');