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.

513 B
Raw Blame
//! API endpoints for ID mapping operations.
//!
//! Provides a simple key-value store for mapping source IDs to target IDs.

use axum::{
    Router,
    routing::{get, post},
};

use crate::cognition::api::context::ApiContext;

mod create;
mod get_mapping;

/// Creates the router for id_mapping endpoints.
pub fn router() -> Router<ApiContext> {
    Router::new()
        .route("/{source_id}", post(create::create_id_mapping_handler))
        .route("/{source_id}", get(get_mapping::get_id_mapping_handler))
}