mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 09:37:29 +00:00
update base API URL (#3251)
update base api URL to new server https://demo.mifos.io
This commit is contained in:
parent
22612924b5
commit
4c2a7a56a0
@ -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.
|
||||
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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('.');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user