mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
Strip trailing slashes to avoid 404
This commit is contained in:
parent
596402e71f
commit
a00561ff09
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue