feat(server): busca FTS5 com filtros e paginacao

This commit is contained in:
2026-08-05 20:35:17 -03:00
parent 2564c33748
commit 1d1de4bcec
7 changed files with 169 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
pub mod announce;
pub mod files;
pub mod health;
pub mod search;
use axum::{routing::{get, post}, Router};
use tower_http::cors::CorsLayer;
@@ -9,6 +10,7 @@ use crate::state::SharedState;
pub fn router(state: SharedState) -> Router {
let api = Router::new()
.route("/health", get(health::health))
.route("/search", get(search::search))
.route("/files/{file_id}", get(files::get_file))
.route("/announce", post(announce::announce))
.with_state(state);