summaryrefslogtreecommitdiff
path: root/makima/src/server/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'makima/src/server/mod.rs')
-rw-r--r--makima/src/server/mod.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/makima/src/server/mod.rs b/makima/src/server/mod.rs
index 7c13f08..8456006 100644
--- a/makima/src/server/mod.rs
+++ b/makima/src/server/mod.rs
@@ -213,7 +213,16 @@ pub fn make_router(state: SharedState) -> Router {
// Timeline endpoint (unified history for user)
.route("/timeline", get(history::get_timeline))
// Contract type templates (workflow definitions)
- .route("/contract-types", get(templates::list_contract_types))
+ .route(
+ "/contract-types",
+ get(templates::list_contract_types).post(templates::create_template),
+ )
+ .route(
+ "/contract-types/{id}",
+ get(templates::get_template)
+ .put(templates::update_template)
+ .delete(templates::delete_template),
+ )
// Settings endpoints
.route(
"/settings/repository-history",