Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

438 B
Raw Blame
use crate::api::ApiContext;
use axum::{
    Router,
    routing::{delete, post},
};

pub(in crate::api) mod backfill;
pub(in crate::api) mod delete_document;
pub(in crate::api) mod extract_sync;

pub fn router() -> Router<ApiContext> {
    Router::new()
        .route("/delete/{document_id}", delete(delete_document::handler))
        .route("/extract_sync", post(extract_sync::handler))
        .nest("/backfill", backfill::router())
}