good to go

This commit is contained in:
nelle 2024-09-21 04:45:59 -06:00
parent 303e4061c6
commit ff49f216bf
2 changed files with 1 additions and 2 deletions

View file

@ -37,7 +37,6 @@ fun Application.module() {
allowHeader(HttpHeaders.ContentType)
anyHost()
}
// check for ntfyhistory file, and if it doesnt exist, create it
checkCreate()
runBlocking {
val client =

View file

@ -141,8 +141,8 @@ fun Application.configureRouting(client: HttpClient) {
val click = formParameters["Click"].toString()
call.response.status(HttpStatusCode(201, "Received..."))
call.respondText("Received:: Title: $title, Message: $message, Attachment: $attach, Click: $click")
storeMessage(title, message, attach, click)
ntfyMsg(client, title, message, attach, click)
storeMessage(title, message, attach, click)
}
}
}