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;
|
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'],
|
transports: ['websocket'],
|
||||||
reconnection: true,
|
reconnection: true,
|
||||||
reconnectionAttempts: Infinity,
|
reconnectionAttempts: Infinity,
|
||||||
|
|
@ -192,7 +192,7 @@ const PrometheusChart = ({ metricName }) => {
|
||||||
const rangeSeconds = end - start;
|
const rangeSeconds = end - start;
|
||||||
|
|
||||||
try {
|
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: {
|
params: {
|
||||||
metric: metricName,
|
metric: metricName,
|
||||||
start,
|
start,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const LoginModal = ({ onLogin, onClose }) => {
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue