FS: Remove multiTenantFrontend flag (#110776)
* FS: Move multiTenantFrontend evaluation to OpenFeature * comment * actually, just remove the toggle * fix k8s prefs test using toggle * replace frontend flag usage * codeowners * move isFrontendService just into core * put back comment
This commit is contained in:
+2
-4
@@ -84,10 +84,8 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r.Get("/login", hs.LoginView)
|
||||
r.Get("/invite/:code", hs.Index)
|
||||
|
||||
if hs.Features.IsEnabledGlobally(featuremgmt.FlagMultiTenantFrontend) {
|
||||
// Temporarily expose the full bootdata via API
|
||||
r.Get("/bootdata", reqNoAuth, hs.GetBootdata)
|
||||
}
|
||||
// Temporary MT-frontend config endpoint
|
||||
r.Get("/bootdata", reqNoAuth, hs.GetBootdata)
|
||||
|
||||
// authed views
|
||||
r.Get("/", reqSignedIn, hs.Index)
|
||||
|
||||
@@ -32,9 +32,12 @@ import (
|
||||
// NOTE: this should not be added to the public API docs, and is useful for a transition
|
||||
// towards a fully static index.html -- this will likely be replaced with multiple calls
|
||||
func (hs *HTTPServer) GetBootdata(c *contextmodel.ReqContext) {
|
||||
c, span := hs.injectSpan(c, "api.GetBootdata")
|
||||
defer span.End()
|
||||
|
||||
data, err := hs.setIndexViewData(c)
|
||||
if err != nil {
|
||||
c.Handle(hs.Cfg, http.StatusInternalServerError, "Failed to get settings", err)
|
||||
c.JsonApiErr(http.StatusInternalServerError, "Failed to get settings", err)
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, data)
|
||||
|
||||
Reference in New Issue
Block a user