Update index.js
This commit is contained in:
@@ -19,9 +19,8 @@ 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: 'Ошибка сервера при получении статуса верификации' });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user