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
+4 -4
View File
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import axios from 'axios';
import api from './lib/api.js';
import {
IconPlus,
IconTrash,
@@ -30,7 +30,7 @@ function AutoUrlManager() {
const fetchUrls = async () => {
try {
setLoading(true);
const response = await axios.get('/api/auto-urls');
const response = await api.get('/auto-urls');
setUrls(response.data);
} catch (error) {
console.error('Error fetching URLs:', error);
@@ -91,7 +91,7 @@ function AutoUrlManager() {
return;
}
await axios.post('/api/auto-urls', { urls: validUrls });
await api.post('/auto-urls', { urls: validUrls });
setUrls(validUrls);
setMessage('URL-адреса сохранены успешно');
setMessageType('success');
@@ -109,7 +109,7 @@ function AutoUrlManager() {
setProcessing(true);
setMessage('');
const response = await axios.post('/api/auto-urls/process');
const response = await api.post('/auto-urls/process');
setMessage(response.data.message);
setMessageType('success');
} catch (error) {