update process_lib serve_ui

This commit is contained in:
dr-frmr 2024-08-05 19:46:52 +03:00
parent 779018b84d
commit be92a76226
No known key found for this signature in database
4 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@ -3313,7 +3313,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.9.0"
source = "git+https://github.com/kinode-dao/process_lib?branch=develop#ddc4c11f5e2cfd6461d6d8f44d154146f3dbc087"
source = "git+https://github.com/kinode-dao/process_lib?branch=develop#6edbf78bbdbd1ba6a755f1888ba78b9144ed4ff8"
dependencies = [
"alloy",
"alloy-primitives",

View File

@ -102,7 +102,7 @@ fn initialize(our: Address) {
// Serve the index.html and other UI files found in pkg/ui at the root path.
// authenticated=true, local_only=false
http_server
.serve_ui(&our, "ui", http_config.clone())
.serve_ui(&our, "ui", vec!["/"], http_config.clone())
.expect("failed to serve ui");
// Allow HTTP requests to be made to /games; they will be handled dynamically.

View File

@ -44,7 +44,7 @@ fn init(our: Address) {
let http_config = server::HttpBindingConfig::default();
http_server
.serve_ui(&our, "ui", http_config.clone())
.serve_ui(&our, "ui", vec!["/"], http_config.clone())
.expect("failed to serve ui");
http_server

View File

@ -189,6 +189,7 @@ fn initialize(our: Address) {
.serve_ui(
&state.our,
"ui",
vec!["/"],
http::server::HttpBindingConfig::default().secure_subdomain(true),
)
.unwrap();