feat: 提供养成服务内部 IM 能力

This commit is contained in:
richjohnrambo
2026-09-19 15:24:55 +08:00
parent 8b20118570
commit a08c0bd921
8 changed files with 334 additions and 1 deletions
+4
View File
@@ -928,6 +928,10 @@ func main() {
mux.HandleFunc(adminQueryPrefix, func(wrt http.ResponseWriter, req *http.Request) {
serveInternalAdminQuery(wrt, req, adminQueryPrefix)
})
cultivatePrefix := config.ApiPath + "internal/cultivate/"
mux.HandleFunc(cultivatePrefix, func(wrt http.ResponseWriter, req *http.Request) {
serveInternalCultivate(wrt, req, cultivatePrefix)
})
// Handle long polling clients. Enable compression.
mux.Handle(config.ApiPath+"v0/channels/lp", gh.CompressHandler(http.HandlerFunc(serveLongPoll)))
if config.Media != nil {