Skip to content

Commit

Permalink
changed the api base
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed Nov 20, 2024
1 parent 9332e84 commit af9fa42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import axios from 'axios';
import { CREDENTIALKEYS } from './constants';

const API_BASE = 'https://backend.epns.io/apis/v1';
const API_ANODE_BASE = 'https://anode2.push.org/'
const API_ANODE_BASE = 'https://aa1.dev.push.org/';

export const login = async ({ user, pass }) => {
try {
Expand Down Expand Up @@ -137,4 +137,4 @@ export const getHeathCheck = async () => {
} catch (e) {
console.log('Error occured in health-check', e);
}
};
};
6 changes: 3 additions & 3 deletions utils/json-rpc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const API_BASE = 'https://anode2.push.org/rpc';
const API_BASE = 'https://aa1.dev.push.org/rpc';

const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

Expand All @@ -9,7 +9,7 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => {
jsonrpc: '2.0',
method: `RpcService.${method}`,
params: params,
id
id,
};

try {
Expand All @@ -22,4 +22,4 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => {
} catch (error) {
throw new Error('JSON-RPC Error: ' + error.message);
}
};
};

0 comments on commit af9fa42

Please sign in to comment.