feat: user profile and layout modifications
This commit is contained in:
1 parent
6501bb4275
commit
f94cefb349
37 files changed
+483
-89795
No files matched your search
@@ -260,7 +260,8 @@ router.post('/upload-profile-picture', upload.single('profile_picture'), (req, r
|
||||
|
||||
res.json({ ok: true, message: 'Foto profil berhasil diperbarui', profile_picture: req.file.filename });
|
||||
} catch (err) {
|
||||
res.status(401).json({ error: 'Invalid token' });
|
||||
console.error('[Upload Error]', err);
|
||||
res.status(401).json({ error: 'Invalid token', details: err.message });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user