AkurAI Build
Menu

Public repository / 89952ed42401bf7abda4948e556ef64b3fc5783e

AkurAI-Notes / crates/notes-api/src/router_setup.rs

Latest change 409fb930689e231969f33d5f0947e030c930a722 - E01: Bootstrap AkurAI-Notes v0.0.1 — pure-Rust workspace via AkurAI-Framework 'akurai new' by Claude Code

use std::sync::{Arc, Mutex};
use akurai_storage::BTree;
use std::path::PathBuf;

pub struct NotesState {
    pub db: Arc<Mutex<BTree>>,
    pub objects: Vec<String>,
    pub frontend_dir: PathBuf,
    pub embed_url: Option<String>,
    pub embed_model: Option<String>,
}

pub enum Route {
    Static { path: String, file: String },
    Handler { method: String, path: String, handler: fn() -> String },
}

pub fn build_router(_state: Arc<Mutex<NotesState>>) -> Vec<Route> {
    vec![]
}