GPIO control.

Bug fix.
This commit is contained in:
2024-11-15 11:22:16 +07:00
parent f7e4ee68d6
commit f515f829cf
2 changed files with 2 additions and 1 deletions

1
.idea/misc.xml generated
View File

@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">

View File

@@ -36,6 +36,8 @@ public class WebServer {
this.webusername = webusername;
this.webpassword = webpassword;
app = Javalin.create(config -> {
config.useVirtualThreads = true;
config.staticFiles.add("/html");
config.router.apiBuilder(()-> path("setting", () ->{
get(ctx -> ctx.json(SettingInfo.getInstance()));