UI: persist experimental flag (BC) (#27074)

This commit is contained in:
Maschga 2026-02-07 17:15:59 +01:00 • committed by GitHub
parent 3f1df220b5
commit 4c5935b60d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 137 additions and 112 deletions

View file

@ -120,7 +120,7 @@ func (s *HTTPd) Router() *mux.Router {
}
// RegisterSiteHandlers connects the http handlers to the site
func (s *HTTPd) RegisterSiteHandlers(site site.API, valueChan chan<- util.Param) {
func (s *HTTPd) RegisterSiteHandlers(site site.API) {
router := s.Server.Handler.(*mux.Router)
// api
@ -293,6 +293,7 @@ func (s *HTTPd) RegisterSystemHandler(site *core.Site, pub publisher, cache *uti
"interval": {"POST", "/interval/{value:[0-9.]+}", settingsSetDurationHandler(keys.Interval, pub)},
"updatesponsortoken": {"POST", "/sponsortoken", updateSponsortokenHandler(pub)},
"deletesponsortoken": {"DELETE", "/sponsortoken", deleteSponsorTokenHandler(pub)},
"experimental": {"POST", "/experimental/{value:[01truefalse]+}", boolHandler(setExperimental(pub), getExperimental)},
}
// yaml handlers