diff options
| author | soryu <soryu@soryu.co> | 2026-02-07 00:01:50 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-07 00:01:50 +0000 |
| commit | b8d563d45f14a2b1db1f684aa0a8dcd7e5b6ad56 (patch) | |
| tree | 95543fd150270018e384fbcf9d3df3dc45f052f6 /makima/src/server/mod.rs | |
| parent | cececbf326e258211ceae7afce716a5d1e46014f (diff) | |
| download | soryu-b8d563d45f14a2b1db1f684aa0a8dcd7e5b6ad56.tar.gz soryu-b8d563d45f14a2b1db1f684aa0a8dcd7e5b6ad56.zip | |
Remove directives for reimplementation
Diffstat (limited to 'makima/src/server/mod.rs')
| -rw-r--r-- | makima/src/server/mod.rs | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/makima/src/server/mod.rs b/makima/src/server/mod.rs index 463a5f5..b7a4156 100644 --- a/makima/src/server/mod.rs +++ b/makima/src/server/mod.rs @@ -18,7 +18,7 @@ use tower_http::trace::TraceLayer; use utoipa::OpenApi; use utoipa_swagger_ui::SwaggerUi; -use crate::server::handlers::{api_keys, chat, contract_chat, contract_daemon, contract_discuss, contracts, directives, file_ws, files, history, listen, mesh, mesh_chat, mesh_daemon, mesh_merge, mesh_supervisor, mesh_ws, repository_history, speak, templates, transcript_analysis, users, versions}; +use crate::server::handlers::{api_keys, chat, contract_chat, contract_daemon, contract_discuss, contracts, file_ws, files, history, listen, mesh, mesh_chat, mesh_daemon, mesh_merge, mesh_supervisor, mesh_ws, repository_history, speak, templates, transcript_analysis, users, versions}; use crate::server::openapi::ApiDoc; use crate::server::state::SharedState; @@ -214,61 +214,6 @@ pub fn make_router(state: SharedState) -> Router { ) // Timeline endpoint (unified history for user) .route("/timeline", get(history::get_timeline)) - // Directive endpoints (replacement for chains) - .route( - "/directives", - get(directives::list_directives).post(directives::create_directive), - ) - .route( - "/directives/{id}", - get(directives::get_directive) - .put(directives::update_directive) - .delete(directives::archive_directive), - ) - .route("/directives/{id}/start", post(directives::start_directive)) - .route("/directives/{id}/pause", post(directives::pause_directive)) - .route("/directives/{id}/resume", post(directives::resume_directive)) - .route("/directives/{id}/stop", post(directives::stop_directive)) - .route("/directives/{id}/requirements", axum::routing::put(directives::update_requirements)) - .route("/directives/{id}/criteria", axum::routing::put(directives::update_criteria)) - .route("/directives/{id}/generate-spec", post(directives::generate_spec)) - // Directive chain management - .route("/directives/{id}/chain", get(directives::get_chain)) - .route("/directives/{id}/chain/graph", get(directives::get_chain_graph)) - .route("/directives/{id}/chain/replan", post(directives::replan_chain)) - // Directive step management - .route( - "/directives/{id}/chain/steps", - post(directives::add_step), - ) - .route( - "/directives/{id}/chain/steps/{step_id}", - get(directives::get_step) - .put(directives::update_step) - .delete(directives::delete_step), - ) - .route("/directives/{id}/chain/steps/{step_id}/skip", post(directives::skip_step)) - .route("/directives/{id}/chain/steps/{step_id}/evaluate", post(directives::evaluate_step)) - .route("/directives/{id}/chain/steps/{step_id}/rework", post(directives::rework_step)) - // Directive evaluations - .route("/directives/{id}/evaluations", get(directives::list_evaluations)) - // Directive events - .route("/directives/{id}/events", get(directives::list_events)) - .route("/directives/{id}/events/stream", get(directives::stream_events)) - // Directive verifiers - .route("/directives/{id}/verifiers/auto-detect", post(directives::auto_detect_verifiers)) - .route( - "/directives/{id}/verifiers", - get(directives::list_verifiers).post(directives::add_verifier), - ) - .route( - "/directives/{id}/verifiers/{verifier_id}", - axum::routing::put(directives::update_verifier), - ) - // Directive approvals - .route("/directives/{id}/approvals", get(directives::list_approvals)) - .route("/directives/{id}/approvals/{approval_id}/approve", post(directives::approve_request)) - .route("/directives/{id}/approvals/{approval_id}/deny", post(directives::deny_request)) // Contract type templates (built-in only) .route("/contract-types", get(templates::list_contract_types)) // Settings endpoints |
