UI: тёплый современный дизайн + русификация
This commit is contained in:
@@ -87,7 +87,7 @@ router.get('/:id', (req: AuthRequest, res: Response) => {
|
||||
|
||||
router.post('/', authMiddleware, upload.single('image'), (req: AuthRequest, res: Response) => {
|
||||
if (!req.file) {
|
||||
res.status(400).json({ error: 'Image required (jpg, png, gif, webp, max 10MB)' });
|
||||
res.status(400).json({ error: 'Нужно выбрать изображение (jpg, png, gif, webp, до 10MB)' });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user