Update index.js

This commit is contained in:
2025-05-03 18:29:01 +05:00
committed by GitHub
parent d4db7b2709
commit 120b43694a

View File

@@ -14,14 +14,13 @@ const PORT = 3000;
// Новый эндпоинты Открываем // Новый эндпоинты Открываем
// Эндпоинт для получения Verified // Эндпоинт для получения Verified
app.get('/api/is_verified', (req, res) => { app.get('/api/is_verified', (req, res) => {
try { try {
const data = getVerifiedUsers(); const data = getVerifiedUsers();
res.status(200).json(data); res.status(200).json(data);
} catch (error) { } catch {
console.error("Ошибка!", error.message); res.status(200).json([]);
res.status(500).json({ error: 'Ошибка сервера при получении статуса верификации' });
} }
}); });