added the api prefix #31

Merged
DmitriyA merged 1 commits from debugging into redesign 2025-04-09 17:03:46 +03:00
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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',