Bootstrap from registry - part 6
This commit is contained in:
@@ -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"] }
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user