mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-11 00:07:30 -05:00
9 lines
283 B
JavaScript
9 lines
283 B
JavaScript
const Group = require("../models/group");
|
|
|
|
exports.get_groups = async function (req, res) {
|
|
const grp_results = await Group.find({ shortName: req.params.shortName.toLowerCase()}).sort("position").exec();
|
|
|
|
res.contentType('json');
|
|
res.send(JSON.stringify(grp_results));
|
|
}
|