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 { useEffect, useMemo, useRef, useState } from 'react';
import axios from 'axios';
import api from './lib/api.js';
import {
IconPlus,
IconSearch,
@@ -39,7 +39,7 @@ function CommunitiesManager() {
const fetchItems = async () => {
setLoading(true);
try {
const res = await axios.get(`${API_URL}/communities`);
const res = await api.get(`/communities`);
setItems(res.data);
setError('');
} catch (e) {
@@ -53,7 +53,7 @@ function CommunitiesManager() {
const saveAll = async (data) => {
setLoading(true);
try {
await axios.post(`${API_URL}/communities`, { communities: data });
await api.post(`/communities`, { communities: data });
setSuccess('Справочник сохранён!');
setTimeout(() => setSuccess(''), 3000);
} catch (e) {