Compare commits
2 Commits
9ee15160e5
...
4eed2f364c
| Author | SHA1 | Date |
|---|---|---|
|
|
4eed2f364c | |
|
|
5b25876056 |
|
|
@ -145,7 +145,7 @@ const PrometheusChart = ({ metricName }) => {
|
|||
if (socketRef.current.reconnecting) return socketRef.current;
|
||||
}
|
||||
|
||||
const socket = io('http://192.168.2.39:3000/metrics-ws', {
|
||||
const socket = io('http://192.168.2.39:3000/api/metrics-ws', {
|
||||
transports: ['websocket'],
|
||||
reconnection: true,
|
||||
reconnectionAttempts: Infinity,
|
||||
|
|
@ -192,7 +192,7 @@ const PrometheusChart = ({ metricName }) => {
|
|||
const rangeSeconds = end - start;
|
||||
|
||||
try {
|
||||
const response = await axios.get(`${import.meta.env.VITE_BACK_URL}/metrics`, {
|
||||
const response = await axios.get(`${import.meta.env.VITE_BACK_URL}/api/metrics`, {
|
||||
params: {
|
||||
metric: metricName,
|
||||
start,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const LoginModal = ({ onLogin, onClose }) => {
|
|||
|
||||
try {
|
||||
// Отправляем данные на бэкенд
|
||||
const response = await fetch(`${import.meta.env.VITE_BACK_URL}/auth/login`, {
|
||||
const response = await fetch(`${import.meta.env.VITE_BACK_URL}/api/auth/login`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
|
|
|||
Loading…
Reference in New Issue