mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
brk: first commit
This commit is contained in:
18
crates/brk_server/src/api/mod.rs
Normal file
18
crates/brk_server/src/api/mod.rs
Normal 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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user