first commit

This commit is contained in:
2026-01-19 16:57:29 +07:00
parent 0668d07d0c
commit 740b241b71
8 changed files with 246 additions and 7 deletions

21
src/Web/WebUI.kt Normal file
View File

@@ -0,0 +1,21 @@
package Web
import Other.Config
import io.javalin.Javalin
@Suppress("unused")
/**
* Start WebUI Server
*/
class WebUI(config: Config) {
private var app : Javalin = Javalin.create { config ->
config.staticFiles.add("/html")
}.start(config.WebPort)
/**
* Stop WebUI Server
*/
fun Stop(){
app.stop()
}
}