GPIO control.
Bug fix.
This commit is contained in:
1
.idea/misc.xml
generated
1
.idea/misc.xml
generated
@@ -1,4 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
<component name="MavenProjectsManager">
|
<component name="MavenProjectsManager">
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ public class WebServer {
|
|||||||
this.webusername = webusername;
|
this.webusername = webusername;
|
||||||
this.webpassword = webpassword;
|
this.webpassword = webpassword;
|
||||||
app = Javalin.create(config -> {
|
app = Javalin.create(config -> {
|
||||||
|
config.useVirtualThreads = true;
|
||||||
|
|
||||||
config.staticFiles.add("/html");
|
config.staticFiles.add("/html");
|
||||||
config.router.apiBuilder(()-> path("setting", () ->{
|
config.router.apiBuilder(()-> path("setting", () ->{
|
||||||
get(ctx -> ctx.json(SettingInfo.getInstance()));
|
get(ctx -> ctx.json(SettingInfo.getInstance()));
|
||||||
|
|||||||
Reference in New Issue
Block a user