news
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// API Configuration
|
||||
export const API_CONFIG = {
|
||||
BASE_URL: 'https://api.konturai.kz',
|
||||
ENDPOINTS: {
|
||||
// MarketItemController - Получение данных
|
||||
NEWS_ITEMS: '/api/parser/items',
|
||||
NEWS_ITEM_BY_ID: '/api/parser/items',
|
||||
STATS: '/api/parser/items/stats',
|
||||
SOURCES: '/api/parser/items/sources',
|
||||
NEWS_BY_SOURCE: '/api/parser/items/source',
|
||||
|
||||
// ParserAdminController - Управление парсерами
|
||||
PARSERS: '/api/parser/admin/parsers',
|
||||
PARSERS_INFO: '/api/parser/admin/parsers/info',
|
||||
PARSER_EXISTS: '/api/parser/admin/parsers/exists',
|
||||
PARSE_ALL: '/api/parser/admin/parsers/parse/all',
|
||||
PARSE_SOURCE: '/api/parser/admin/parsers/parse',
|
||||
|
||||
// HealthCheckController - Мониторинг системы
|
||||
HEALTH: '/api/parser/health',
|
||||
MONGO_HEALTH: '/api/parser/health/mongodb',
|
||||
SCHEDULER_HEALTH: '/api/parser/health/scheduler',
|
||||
SYSTEM_HEALTH: '/api/parser/health/system',
|
||||
PARSERS_HEALTH: '/api/parser/health/parsers'
|
||||
}
|
||||
};
|
||||
|
||||
// Default request configuration
|
||||
export const DEFAULT_REQUEST_CONFIG = {
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
};
|
||||
|
||||
// Request timeout (in milliseconds)
|
||||
export const REQUEST_TIMEOUT = 30000;
|
||||
Reference in New Issue
Block a user