huskies: merge 898
This commit is contained in:
@@ -55,6 +55,8 @@ pub fn build_gateway_route(state_arc: Arc<GatewayState>) -> impl poem::Endpoint
|
||||
)
|
||||
// Agent registration via CRDT-sync WebSocket.
|
||||
.at("/crdt-sync", poem::get(gateway_crdt_sync_handler))
|
||||
// Sled uplink: permission-forwarding WebSocket from sleds to gateway.
|
||||
.at("/api/sled-uplink", poem::get(gateway_sled_uplink_handler))
|
||||
// Agent management REST endpoints.
|
||||
.at(
|
||||
"/gateway/agents/:id/assign",
|
||||
@@ -126,6 +128,7 @@ pub async fn run(config_path: &Path, port: u16) -> Result<(), std::io::Error> {
|
||||
gateway_project_urls,
|
||||
port,
|
||||
Some(state_arc.event_tx.clone()),
|
||||
Arc::clone(&state_arc.perm_rx),
|
||||
);
|
||||
*state_arc.bot_handle.lock().await = bot_abort;
|
||||
*state_arc.bot_shutdown_tx.lock().await = Some(bot_shutdown_tx);
|
||||
|
||||
Reference in New Issue
Block a user