This commit is contained in:
Ccjcarkbla
2026-06-30 11:49:26 -04:00
parent e192aecb2f
commit 7a35165bfd
16 changed files with 559 additions and 153 deletions
+9
View File
@@ -48,6 +48,15 @@ router.patch('/', authenticateToken, authenticateRole(OWNERS), validate(updateOr
} catch (err) { next(err); }
});
router.get('/branding/public', async (req, res, next) => {
try {
const org = await models.Organization.findOne({ order: [['id', 'ASC']] });
if (!org) return ok(res, {});
const branding = await svc.getBranding(models, org.id);
ok(res, branding);
} catch (err) { next(err); }
});
router.get('/branding', authenticateToken, async (req, res, next) => {
try {
if (!req.user.organizationId) return ok(res, {});