mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-14 05:02:09 +08:00
Enhancement: multiple widgets per service (#4338)
This commit is contained in:
@@ -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