feat(kol): generation + schema HTTP endpoints

This commit is contained in:
2026-04-17 14:52:16 +08:00
parent 019410fffe
commit 97c18cdbef
2 changed files with 62 additions and 1 deletions
@@ -83,6 +83,8 @@ func RegisterRoutes(app *bootstrap.App) {
kolSubscriptions := protected.Group("/tenant/kol")
kolSubscriptions.GET("/subscriptions", kolMarketplaceHandler.ListSubscriptions)
kolSubscriptions.GET("/subscription-prompts", kolMarketplaceHandler.ListSubscriptionPrompts)
kolSubscriptions.GET("/subscription-prompts/:id/schema", kolMarketplaceHandler.SubscriptionPromptSchema)
kolSubscriptions.POST("/subscription-prompts/:id/generate", kolMarketplaceHandler.Generate)
// V1 compromise: these admin operations live on tenant-api and are gated by
// tenant_role=tenant_admin until the platform-api/module is built.