feat: add deploy webhook endpoint (POST /api/v1/_deploy)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user