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.

488 B
Raw Blame
pub(in crate::api) mod edit_thread;
pub(in crate::api) mod get_thread_access_level;

use crate::api::context::ApiContext;
use axum::Router;
use axum::routing::patch;

pub fn router(state: ApiContext) -> Router<ApiContext> {
    Router::new().route(
        "/{thread_id}",
        patch(edit_thread::edit_thread_handler).layer(axum::middleware::from_fn_with_state(
            state,
            macro_middleware::cloud_storage::thread::ensure_thread_exists::handler,
        )),
    )
}