style(wizard): rustfmt infrastructure/onboarding.rs
CI / Check (pull_request) Successful in 5m37s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped
CI / Check (pull_request) Successful in 5m37s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped
This commit is contained in:
@@ -80,12 +80,14 @@ pub async fn create_target(
|
|||||||
/// Run kind-based classification on a target.
|
/// Run kind-based classification on a target.
|
||||||
#[server]
|
#[server]
|
||||||
pub async fn detect_target(id: String) -> Result<TargetResponse, ServerFnError> {
|
pub async fn detect_target(id: String) -> Result<TargetResponse, ServerFnError> {
|
||||||
let resp =
|
let resp = super::agent_client::agent_request(
|
||||||
super::agent_client::agent_request(reqwest::Method::POST, &format!("/api/v1/targets/{id}/detect"))
|
reqwest::Method::POST,
|
||||||
.await?
|
&format!("/api/v1/targets/{id}/detect"),
|
||||||
.send()
|
)
|
||||||
.await
|
.await?
|
||||||
.map_err(|e| ServerFnError::new(e.to_string()))?;
|
.send()
|
||||||
|
.await
|
||||||
|
.map_err(|e| ServerFnError::new(e.to_string()))?;
|
||||||
resp.json()
|
resp.json()
|
||||||
.await
|
.await
|
||||||
.map_err(|e| ServerFnError::new(e.to_string()))
|
.map_err(|e| ServerFnError::new(e.to_string()))
|
||||||
|
|||||||
Reference in New Issue
Block a user