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)
|
allowHeader(HttpHeaders.ContentType)
|
||||||
anyHost()
|
anyHost()
|
||||||
}
|
}
|
||||||
// check for ntfyhistory file, and if it doesnt exist, create it
|
|
||||||
checkCreate()
|
checkCreate()
|
||||||
runBlocking {
|
runBlocking {
|
||||||
val client =
|
val client =
|
||||||
|
|
|
@ -141,8 +141,8 @@ fun Application.configureRouting(client: HttpClient) {
|
||||||
val click = formParameters["Click"].toString()
|
val click = formParameters["Click"].toString()
|
||||||
call.response.status(HttpStatusCode(201, "Received..."))
|
call.response.status(HttpStatusCode(201, "Received..."))
|
||||||
call.respondText("Received:: Title: $title, Message: $message, Attachment: $attach, Click: $click")
|
call.respondText("Received:: Title: $title, Message: $message, Attachment: $attach, Click: $click")
|
||||||
storeMessage(title, message, attach, click)
|
|
||||||
ntfyMsg(client, title, message, attach, click)
|
ntfyMsg(client, title, message, attach, click)
|
||||||
|
storeMessage(title, message, attach, click)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue