Skip to content

Commit b6cb907

Browse files
committed
fix: web ui server pdoduct version issue
1 parent ed7c8a5 commit b6cb907

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Editor/Src/WebUIServer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ namespace Editor {
2121
serverThread = std::make_unique<Common::NamedThread>("WebUIServerThread", [this]() -> void {
2222
server = Common::MakeUnique<httplib::Server>();
2323
server->set_mount_point("/", "./Web");
24+
server->Get("/(.+)", [](const httplib::Request&, httplib::Response& res) {
25+
res.set_file_content("./Web/index.html");
26+
});
2427
server->listen("localhost", caWebUIPort.GetValue());
2528
});
2629
}

0 commit comments

Comments
 (0)