change url
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-21 01:36:37 +02:00
parent 6d77a82b9f
commit d9ec9f3a3e
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -41,7 +41,7 @@ fun Application.module(testing: Boolean = false) {
}
routing {
get("/") {
get("/benchmark") {
val requestBody : String = call.receiveText()
val msgObj: MessageObject = gson.fromJson(requestBody,MessageObject::class.java)
mqttClient.publish("command/${msgObj.device_id}", message)