main #8

Closed
limepotato wants to merge 183 commits from main into blog-drafts
2 changed files with 1 additions and 2 deletions
Showing only changes of commit ff49f216bf - Show all commits

View file

@ -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 =

View file

@ -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)
} }
} }
} }