commit 24/09/2025
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package web
|
||||
|
||||
import barix.BarixConnection
|
||||
import codes.Somecodes
|
||||
import codes.Somecodes.Companion.ListAudioFiles
|
||||
import codes.Somecodes.Companion.ValiDateForLogHtml
|
||||
@@ -35,7 +36,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook
|
||||
import java.time.LocalDateTime
|
||||
|
||||
@Suppress("unused")
|
||||
class WebApp(val listenPort: Int, val userlist: List<Pair<String, String>>, val db: MariaDB) {
|
||||
class WebApp(val listenPort: Int, val userlist: List<Pair<String, String>>, val db: MariaDB, val StreamerOutputs : MutableMap<String, BarixConnection> ) {
|
||||
|
||||
var app: Javalin? = null
|
||||
val objectmapper = jacksonObjectMapper()
|
||||
@@ -134,6 +135,10 @@ class WebApp(val listenPort: Int, val userlist: List<Pair<String, String>>, val
|
||||
SendReply(wsMessageContext, cmd.command, objectmapper.writeValueAsString(db.Read_Queue_Table()))
|
||||
}
|
||||
|
||||
"getStreamerOutputs" -> {
|
||||
SendReply(wsMessageContext, cmd.command, objectmapper.writeValueAsString(StreamerOutputs.values.toList()))
|
||||
}
|
||||
|
||||
else -> {
|
||||
SendReply(wsMessageContext, cmd.command, "Unknown command")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user