moadim 1.7.2

Loop engine for AI agents — routines over REST, MCP, and a built-in web UI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `GET /routines/lock` HTTP handler.

use super::logic;
use axum::Json;
use logic::LockStatus;

/// `GET /routines/lock` — return the current global lock status.
#[utoipa::path(get, path = "/routines/lock",
    responses((status = 200, body = LockStatus)))]
pub async fn get_lock_status() -> Json<LockStatus> {
    Json(logic::build())
}

#[cfg(test)]
#[path = "http_tests.rs"]
mod http_tests;