use crate::api::EmptyResponse; use crate::state::AppState; use axum::{ Json, extract::{Query, State}, response::{IntoResponse, Response}, }; use serde::Deserialize; use tracing::info; #[derive(Deserialize)] pub struct NotifyOfUpdateParams { pub hostname: String, } pub async fn notify_of_update( State(_state): State, Query(params): Query, ) -> Response { info!("Received notifyOfUpdate from hostname: {}", params.hostname); EmptyResponse::ok().into_response() } #[derive(Deserialize)] pub struct RequestCrawlInput { pub hostname: String, } pub async fn request_crawl( State(_state): State, Json(input): Json, ) -> Response { info!("Received requestCrawl for hostname: {}", input.hostname); EmptyResponse::ok().into_response() }