feat: add deploy webhook endpoint (POST /api/v1/_deploy)

This commit is contained in:
user
2026-04-28 16:13:39 +09:00
parent dced20a9af
commit 510d95abd2
5 changed files with 56 additions and 0 deletions

View File

@@ -53,6 +53,9 @@ func (h Handler) Routes() http.Handler {
mux.HandleFunc("GET /api/v1/ontology", h.getOntology)
mux.HandleFunc("POST /api/v1/teaching-assets/prompts", h.generateTeachingAssetPrompt)
mux.HandleFunc("GET /api/v1/teaching-assets", h.getTeachingAssets)
if h.cfg.HasDeploy() {
mux.HandleFunc("POST /api/v1/_deploy", h.handleDeploy)
}
mux.Handle("GET /", webapp.Handler())
return mux
}