Enhancement: multiple widgets per service (#4338)
This commit is contained in:
46 files changed
+210
-169
No files matched your search
@@ -33,10 +33,10 @@ async function login(loginUrl, username, password, controllerVersionMajor) {
|
||||
}
|
||||
|
||||
export default async function omadaProxyHandler(req, res) {
|
||||
const { group, service } = req.query;
|
||||
const { group, service, index } = req.query;
|
||||
|
||||
if (group && service) {
|
||||
const widget = await getServiceWidget(group, service);
|
||||
const widget = await getServiceWidget(group, service, index);
|
||||
|
||||
if (widget) {
|
||||
const { url } = widget;
|
||||
|
||||
Reference in new issue
Block a user