brk: first commit

This commit is contained in:
nym21
2025-02-23 01:25:15 +01:00
parent 8c3f519016
commit 19cf34f9d4
266 changed files with 225 additions and 1268 deletions

View File

@@ -0,0 +1,18 @@
use axum::{routing::get, Router};
use super::AppState;
mod explorer;
mod vecs;
pub use vecs::VecIdToIndexToVec;
pub trait ApiRoutes {
fn add_api_routes(self) -> Self;
}
impl ApiRoutes for Router<AppState> {
fn add_api_routes(self) -> Self {
self.route("/api/vecs", get(vecs::handler))
}
}