Bugfix in sendNotification()
URL for Post Request returned a 404 because there was a " too much
This commit is contained in:
@@ -7,7 +7,7 @@ export async function sendNotification(title: string, body: string, link?: strin
|
||||
}
|
||||
});
|
||||
if ( ! ( process.env.notification_mock == "true" ) ) {
|
||||
const response = await fetch(`${ process.env.apprise_https == "true" ? "https" : "http"}://${process.env.apprise_host ? process.env.apprise_host : "apprise"}:${process.env.apprise_port ? String(process.env.apprise_port) : "80" }/notify"`, {
|
||||
const response = await fetch(`${ process.env.apprise_https == "true" ? "https" : "http"}://${process.env.apprise_host ? process.env.apprise_host : "apprise"}:${process.env.apprise_port ? String(process.env.apprise_port) : "80" }/notify`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
|
||||
Reference in New Issue
Block a user