Strip trailing slashes to avoid 404

pull/3283/head
Lasse Bang Mikkelsen 2 years ago
parent 596402e71f
commit a00561ff09
No known key found for this signature in database
GPG Key ID: 5FB75AB9E0AB5EC2

@ -11,7 +11,7 @@ class HomeAssistant extends NotificationProvider {
try {
await axios.post(
`${notification.homeAssistantUrl}/api/services/notify/${notificationService}`,
`${notification.homeAssistantUrl.trim().replace(/\/*$/, "")}/api/services/notify/${notificationService}`,
{
title: "Uptime Kuma",
message,

Loading…
Cancel
Save