Skip to content

Commit

Permalink
fix: endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lulu-tro committed Sep 9, 2024
1 parent b5d031c commit 2807775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/APIClient/APIClient10.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class APIClient10 {
this.apiUrl = url;
}


getHostVersion() {
return this.request('/api/v1/version');
}
Expand Down
2 changes: 2 additions & 0 deletions src/components/Login/Endpoint.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {useRef,useEffect} from 'react';
import { QuestionCircleOutlined } from '@ant-design/icons';
import Emitter from 'utils/eventBus';
import { setApiUrl } from 'services/otherService.js';
import { urlCheck } from 'utils/checks.js';
import { Tooltip } from 'antd';
import { t } from 'utils/text.js';
Expand Down Expand Up @@ -42,6 +43,7 @@ const Endpoint = ({ color }) => {
const node_url = getNodeUrl();
if (!node_url) return;
localStorage.setItem('NODE_URL', node_url);
setApiUrl(node_url);
Emitter.emit('handleEndpoint', node_url);
};

Expand Down

0 comments on commit 2807775

Please sign in to comment.