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');
|
||||
|
||||
// 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`;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
[
|
||||
|
||||
@@ -34,4 +34,4 @@
|
||||
"enabled": true,
|
||||
"createdAt": "2024-01-19T11:30:00.000Z"
|
||||
}
|
||||
]
|
||||
]
|
||||
Reference in New Issue
Block a user