summaryrefslogtreecommitdiffstats
path: root/server/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/api')
-rw-r--r--server/api/clients.js2
-rw-r--r--server/api/groups.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/api/clients.js b/server/api/clients.js
index 3152e10..a6d151a 100644
--- a/server/api/clients.js
+++ b/server/api/clients.js
@@ -18,7 +18,7 @@ router.getAsync('', async (req, res) => {
router.getAsync('/:id', async (req, res) => {
if (!(req.params.id > 0)) return HttpResponse.invalidId().send(res)
- const client = await db.client.findOne({ where: { id: req.params.id }, include: ['groups'] })
+ const client = await db.client.findOne({ where: { id: req.params.id }, include: ['groups', 'config'] })
if (client) res.status(200).send(client)
else HttpResponse.notFound(req.params.id).send(res)
})
diff --git a/server/api/groups.js b/server/api/groups.js
index 7cab3d8..a19c231 100644
--- a/server/api/groups.js
+++ b/server/api/groups.js
@@ -20,7 +20,7 @@ router.getAsync('', async (req, res) => {
router.getAsync('/:id', async (req, res) => {
const all = req.query.all !== undefined && req.query.all !== 'false'
if (req.params.id > 0) {
- let group = await db.group.findOne({ where: { id: req.params.id }, include: ['parents', 'ipranges', 'subgroups', 'clients'] })
+ let group = await db.group.findOne({ where: { id: req.params.id }, include: ['parents', 'ipranges', 'subgroups', 'clients', 'config'] })
if (group) {
// Convert ipranges in readable strings.
group.ipranges.forEach(iprange => {