Bootstrap from registry - part 6

This commit is contained in:
mdecimus
2026-02-01 19:02:09 +01:00
parent 0398a9d28e
commit 262aed19af
67 changed files with 1976 additions and 2580 deletions

View File

@@ -6,6 +6,7 @@ edition = "2024"
[dependencies]
common = { path = "../common" }
trc = { path = "../trc" }
registry = { path = "../registry" }
serde = { version = "1.0", features = ["derive"]}
serde_json = "1.0"
hyper = { version = "1.0.1", features = ["server", "http1", "http2"] }

View File

@@ -10,6 +10,7 @@ use common::{
};
use compact_str::{ToCompactString, format_compact};
use hyper::StatusCode;
use registry::schema::enums::ExpressionVariable;
use crate::{HttpContext, HttpRequest, HttpSessionData};
@@ -21,7 +22,7 @@ impl<'x> HttpContext<'x> {
pub async fn resolve_response_url(&self, server: &Server) -> String {
server
.eval_if(
&server.core.network.http_response_url,
&server.core.network.http.response_url,
self,
self.session.session_id,
)
@@ -39,7 +40,7 @@ impl<'x> HttpContext<'x> {
pub async fn has_endpoint_access(&self, server: &Server) -> StatusCode {
server
.eval_if(
&server.core.network.http_allowed_endpoint,
&server.core.network.http.allowed_endpoint,
self,
self.session.session_id,
)