Fix jwt-token

This commit is contained in:
2025-09-20 06:19:43 +02:00
parent 903aae4aae
commit 261a5032a1
5 changed files with 47 additions and 2 deletions

View File

@@ -148,8 +148,9 @@ router.post('/logo-upload', authenticateToken, requirePermissions(['branding.edi
}
}
// Create logo URL
const logoUrl = `/uploads/logos/${req.file.filename}`;
// Create logo URL with base path support
const basePath = process.env.VITE_BASE_PATH || '';
const logoUrl = `${basePath}uploads/logos/${req.file.filename}`;
// Update tenant branding with new logo
const updatedBranding = {