From f2e237840b42281d54bbdb5a64762ee48fb5538a Mon Sep 17 00:00:00 2001 From: shats Date: Tue, 20 Jan 2026 15:35:48 +0700 Subject: [PATCH] refactor: rename server-configs.json to servers.json and update related references --- backend/routes/serverConfigsRoutes.js | 2 +- example/s3/README.md | 4 ++-- example/s3/{server-configs.json => servers.json} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename example/s3/{server-configs.json => servers.json} (99%) diff --git a/backend/routes/serverConfigsRoutes.js b/backend/routes/serverConfigsRoutes.js index 900cb5b..29cc250 100644 --- a/backend/routes/serverConfigsRoutes.js +++ b/backend/routes/serverConfigsRoutes.js @@ -10,7 +10,7 @@ const { createJsonDataRoutes } = require('./jsonDataRoutes'); const { getS3TextWithHeaders, getS3JsonWithHeaders } = require('../utils/s3Helpers'); // GET /api/server-configs (список серверов) -const serverConfigsListRoutes = createJsonDataRoutes('server-configs.json', (server, i) => { +const serverConfigsListRoutes = createJsonDataRoutes('servers.json', (server, i) => { if (!server.id || !server.name) { return `Server at index ${i} is missing required fields`; } diff --git a/example/s3/README.md b/example/s3/README.md index ba3d1e7..41db8f3 100644 --- a/example/s3/README.md +++ b/example/s3/README.md @@ -15,12 +15,12 @@ s3/ │ ├── simple-filters.json # Фильтры упрощённого режима │ ├── server-filters-*.json # Фильтры для каждого сервера │ └── config-*.txt # Сгенерированные конфигурации MikroTik -└── server-configs.json # Список серверов (в корне S3) +└── servers.json # Список серверов (в корне S3) ``` ## Описание файлов -### `server-configs.json` +### `servers.json` Список всех серверов в расширенном режиме. ```json [ diff --git a/example/s3/server-configs.json b/example/s3/servers.json similarity index 99% rename from example/s3/server-configs.json rename to example/s3/servers.json index 833ab3c..9923af8 100644 --- a/example/s3/server-configs.json +++ b/example/s3/servers.json @@ -34,4 +34,4 @@ "enabled": true, "createdAt": "2024-01-19T11:30:00.000Z" } -] \ No newline at end of file +]