good to go
This commit is contained in:
parent
303e4061c6
commit
ff49f216bf
2 changed files with 1 additions and 2 deletions
|
@ -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 =
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue