mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-06 07:22:07 +08:00
Enhancement: multiple widgets per service (#4338)
This commit is contained in:
@@ -45,10 +45,10 @@ const getTorrentInfo = (data) => ({
|
||||
});
|
||||
|
||||
export default async function rutorrentProxyHandler(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 api = widgets?.[widget.type]?.api;
|
||||
|
||||
Reference in New Issue
Block a user