mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-26 11:53:31 +03:00
update process_lib serve_ui
This commit is contained in:
parent
779018b84d
commit
be92a76226
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -3313,7 +3313,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "kinode_process_lib"
|
name = "kinode_process_lib"
|
||||||
version = "0.9.0"
|
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 = [
|
dependencies = [
|
||||||
"alloy",
|
"alloy",
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
|
@ -102,7 +102,7 @@ fn initialize(our: Address) {
|
|||||||
// Serve the index.html and other UI files found in pkg/ui at the root path.
|
// Serve the index.html and other UI files found in pkg/ui at the root path.
|
||||||
// authenticated=true, local_only=false
|
// authenticated=true, local_only=false
|
||||||
http_server
|
http_server
|
||||||
.serve_ui(&our, "ui", http_config.clone())
|
.serve_ui(&our, "ui", vec!["/"], http_config.clone())
|
||||||
.expect("failed to serve ui");
|
.expect("failed to serve ui");
|
||||||
|
|
||||||
// Allow HTTP requests to be made to /games; they will be handled dynamically.
|
// Allow HTTP requests to be made to /games; they will be handled dynamically.
|
||||||
|
@ -44,7 +44,7 @@ fn init(our: Address) {
|
|||||||
let http_config = server::HttpBindingConfig::default();
|
let http_config = server::HttpBindingConfig::default();
|
||||||
|
|
||||||
http_server
|
http_server
|
||||||
.serve_ui(&our, "ui", http_config.clone())
|
.serve_ui(&our, "ui", vec!["/"], http_config.clone())
|
||||||
.expect("failed to serve ui");
|
.expect("failed to serve ui");
|
||||||
|
|
||||||
http_server
|
http_server
|
||||||
|
@ -189,6 +189,7 @@ fn initialize(our: Address) {
|
|||||||
.serve_ui(
|
.serve_ui(
|
||||||
&state.our,
|
&state.our,
|
||||||
"ui",
|
"ui",
|
||||||
|
vec!["/"],
|
||||||
http::server::HttpBindingConfig::default().secure_subdomain(true),
|
http::server::HttpBindingConfig::default().secure_subdomain(true),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user