This commit is contained in:
TomatoCake
2024-07-18 15:36:00 +02:00
parent adc3474216
commit 4b1e9ba851
3 changed files with 24 additions and 9 deletions
+11 -4
View File
@@ -49,10 +49,17 @@ router.get(
const instanceUrl =
Config.get().api.endpointPublic || "http://localhost:3001";
return res.json(webhooks.map(webhook => ({
...webhook,
url: instanceUrl + "/webhooks/" + webhook.id + "/" + webhook.token,
})));
return res.json(
webhooks.map((webhook) => ({
...webhook,
url:
instanceUrl +
"/webhooks/" +
webhook.id +
"/" +
webhook.token,
})),
);
},
);