feat: media API (video/bbox/thumbnail), UUID unification, dot matrix text, portal fixes, API dictionary V1.3
This commit is contained in:
@@ -20,7 +20,6 @@ use crate::core::text::tokenizer::tokenize_chinese_text;
|
||||
use crate::{Embedder, FileManager};
|
||||
|
||||
use super::agent_api;
|
||||
use super::face_recognition;
|
||||
use super::five_w1h_agent_api;
|
||||
use super::identities;
|
||||
use super::identity_api;
|
||||
@@ -2491,26 +2490,15 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
|
||||
.route("/api/v1/files/register", post(register_file))
|
||||
.route("/api/v1/unregister", post(unregister))
|
||||
.route("/api/v1/files/scan", get(scan_files))
|
||||
.route("/api/v1/files/:file_uuid/probe", get(probe_by_uuid))
|
||||
.route("/api/v1/files/:file_uuid/process", post(trigger_processing))
|
||||
.route("/api/v1/assets/:uuid/status", get(get_asset_status))
|
||||
.route("/api/v1/jobs/:job_id", get(get_job_status))
|
||||
.route("/api/v1/rules/:rule/status", get(get_rule_status))
|
||||
.route("/api/v1/search/hybrid", post(hybrid_search))
|
||||
.route("/api/v1/search", post(search))
|
||||
.route("/api/v1/search/bm25", post(search_bm25))
|
||||
.route("/api/v1/lookup", get(lookup))
|
||||
.route("/api/v1/videos/:uuid", delete(delete_video))
|
||||
.route("/api/v1/videos/:uuid/details", get(video_details))
|
||||
.route("/api/v1/videos/:uuid/pre_chunks", get(list_pre_chunks))
|
||||
.route("/api/v1/file/:file_uuid/probe", get(probe_by_uuid))
|
||||
.route("/api/v1/file/:file_uuid/process", post(trigger_processing))
|
||||
.route("/api/v1/file/:file_uuid/chunks", get(list_pre_chunks))
|
||||
.route("/api/v1/progress/:uuid", get(get_progress))
|
||||
.route("/api/v1/jobs", get(list_jobs))
|
||||
.route("/api/v1/config/cache", post(cache_toggle))
|
||||
.merge(face_recognition::face_recognition_routes())
|
||||
// .merge(person_identity::person_identity_routes()) // V4.0: DISABLED (person_identities table removed)
|
||||
.merge(identity_binding::identity_binding_routes())
|
||||
.merge(identities::identity_routes())
|
||||
.merge(super::snapshot_api::snapshot_routes())
|
||||
.layer(axum::middleware::from_fn_with_state(
|
||||
state.api_state.clone(),
|
||||
api_key_validation,
|
||||
@@ -2548,6 +2536,7 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
|
||||
.merge(agent_api::agent_routes()) // Phase 6 Routes
|
||||
.merge(super::identity_agent_api::identity_agent_routes()) // Phase 5 Routes
|
||||
.merge(five_w1h_agent_api::five_w1h_agent_routes()) // Phase 3 Routes (5W1H Agent)
|
||||
.merge(super::media_api::bbox_routes()) // Media: video/bbox/thumbnail
|
||||
.merge(search_routes()) // Smart search drill-down
|
||||
.merge(universal_search_routes()) // Universal / frames / persons search
|
||||
.merge(protected_routes)
|
||||
|
||||
Reference in New Issue
Block a user