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.

951 B
Raw Blame
use crate::api::context::ApiContext;
use axum::{
    Router,
    routing::{delete, get, post},
};
pub(in crate::api) mod create_in_progress_link;
pub(in crate::api) mod github;
pub(in crate::api) mod gmail;
pub(in crate::api) mod outlook;

/// Routes for authenticated account-link operations.
pub fn router() -> Router<ApiContext> {
    Router::new()
        .route("/", post(create_in_progress_link::handler))
        .route("/github", post(github::init_github_link_handler))
        .route("/github", delete(github::delete_github_link_handler))
        .route(
            "/github/status",
            get(github::check_github_link_status_handler),
        )
        .route("/gmail", post(gmail::init_gmail_link_handler))
        .route("/gmail/status", get(gmail::check_gmail_link_status_handler))
        .route("/outlook", post(outlook::init_outlook_link_handler))
        .route("/email/providers", get(outlook::email_connection_providers))
}