summaryrefslogtreecommitdiff
path: root/makima/src/server/mod.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-06 20:06:30 +0000
committersoryu <soryu@soryu.co>2026-02-06 20:15:27 +0000
commit1b692b8cde4a888c8a35af69231f181b57bf5619 (patch)
tree74ce25ce6ee5fb4536b53404e1a0ae923e85c30d /makima/src/server/mod.rs
parent139be135c2086d725e4f040e744bb25acd436549 (diff)
downloadsoryu-1b692b8cde4a888c8a35af69231f181b57bf5619.tar.gz
soryu-1b692b8cde4a888c8a35af69231f181b57bf5619.zip
Fix: Cleanup old chain code
Diffstat (limited to 'makima/src/server/mod.rs')
-rw-r--r--makima/src/server/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/makima/src/server/mod.rs b/makima/src/server/mod.rs
index 927e9a5..463a5f5 100644
--- a/makima/src/server/mod.rs
+++ b/makima/src/server/mod.rs
@@ -229,6 +229,9 @@ pub fn make_router(state: SharedState) -> Router {
.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))
@@ -245,12 +248,15 @@ pub fn make_router(state: SharedState) -> Router {
.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),