fix: mount skills catalog at /api/skills-catalog to avoid legacy route conflict
This commit is contained in:
@@ -408,10 +408,15 @@ pub fn router(state: AppState) -> Router {
|
|||||||
.route("/api/team-templates", get(routes::team_templates::list))
|
.route("/api/team-templates", get(routes::team_templates::list))
|
||||||
.route("/api/team-templates/{id}", get(routes::team_templates::get))
|
.route("/api/team-templates/{id}", get(routes::team_templates::get))
|
||||||
// Skills catalog — Slice 3.5a. Layered by 3.5b's MCP server.
|
// Skills catalog — Slice 3.5a. Layered by 3.5b's MCP server.
|
||||||
.route("/api/skills", get(routes::skills_catalog::list))
|
// Mounted at /api/skills-catalog to avoid collision with the
|
||||||
.route("/api/skills/{id}", get(routes::skills_catalog::get))
|
// legacy /api/skills surface until Slice 9 drops it.
|
||||||
|
.route("/api/skills-catalog", get(routes::skills_catalog::list))
|
||||||
.route(
|
.route(
|
||||||
"/api/claws/{id}/skills",
|
"/api/skills-catalog/{id}",
|
||||||
|
get(routes::skills_catalog::get),
|
||||||
|
)
|
||||||
|
.route(
|
||||||
|
"/api/claws/{id}/skill-bundle",
|
||||||
get(routes::skills_catalog::effective_for_agent),
|
get(routes::skills_catalog::effective_for_agent),
|
||||||
)
|
)
|
||||||
// Missions — Slice 1 skeleton. Runs in parallel with the
|
// Missions — Slice 1 skeleton. Runs in parallel with the
|
||||||
|
|||||||
Reference in New Issue
Block a user