refactor: rename server-configs.json to servers.json and update related references
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m22s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m22s
This commit is contained in:
@@ -10,7 +10,7 @@ const { createJsonDataRoutes } = require('./jsonDataRoutes');
|
|||||||
const { getS3TextWithHeaders, getS3JsonWithHeaders } = require('../utils/s3Helpers');
|
const { getS3TextWithHeaders, getS3JsonWithHeaders } = require('../utils/s3Helpers');
|
||||||
|
|
||||||
// GET /api/server-configs (список серверов)
|
// GET /api/server-configs (список серверов)
|
||||||
const serverConfigsListRoutes = createJsonDataRoutes('server-configs.json', (server, i) => {
|
const serverConfigsListRoutes = createJsonDataRoutes('servers.json', (server, i) => {
|
||||||
if (!server.id || !server.name) {
|
if (!server.id || !server.name) {
|
||||||
return `Server at index ${i} is missing required fields`;
|
return `Server at index ${i} is missing required fields`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ s3/
|
|||||||
│ ├── simple-filters.json # Фильтры упрощённого режима
|
│ ├── simple-filters.json # Фильтры упрощённого режима
|
||||||
│ ├── server-filters-*.json # Фильтры для каждого сервера
|
│ ├── server-filters-*.json # Фильтры для каждого сервера
|
||||||
│ └── config-*.txt # Сгенерированные конфигурации MikroTik
|
│ └── config-*.txt # Сгенерированные конфигурации MikroTik
|
||||||
└── server-configs.json # Список серверов (в корне S3)
|
└── servers.json # Список серверов (в корне S3)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Описание файлов
|
## Описание файлов
|
||||||
|
|
||||||
### `server-configs.json`
|
### `servers.json`
|
||||||
Список всех серверов в расширенном режиме.
|
Список всех серверов в расширенном режиме.
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user