feat: Enhance server security and performance by adding helmet for security headers, implementing rate limiting, and centralizing error handling; update frontend API calls to use a dedicated api module for consistency
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 4m37s

This commit is contained in:
2025-08-11 19:11:30 +07:00
parent 087e0eb491
commit 6afd43f9e8
13 changed files with 98 additions and 358 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import axios from 'axios';
import api from './lib/api.js';
import {
IconPlus,
IconSearch,
@@ -113,7 +113,7 @@ function ServerManager() {
const fetchServers = async () => {
setLoading(true);
try {
const response = await axios.get(`${API_URL}/servers`);
const response = await api.get(`/servers`);
setServers(response.data);
setError('');
} catch (error) {
@@ -316,7 +316,7 @@ function ServerManager() {
const handleSaveChanges = async () => {
setLoading(true);
try {
await axios.post(`${API_URL}/servers`, { domains: servers });
await api.post(`/servers`, { domains: servers });
setSuccess('Изменения успешно сохранены!');
setTimeout(() => setSuccess(''), 3000);
} catch (error) {