Strip trailing slashes to avoid 404

This commit is contained in:
Lasse Bang Mikkelsen 2023-06-18 12:58:10 +02:00
parent 596402e71f
commit a00561ff09
No known key found for this signature in database
GPG key ID: 5FB75AB9E0AB5EC2

View file

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