Timer
This commit is contained in:
@@ -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, {});
|
||||
|
||||
Reference in New Issue
Block a user