FEMT: Call /bootdata and render grafana (#105176)
* rename /mtfe route to /femt to match project name * set correct navTree JSON property name * call GetWebAssets in the request handler to prevent stale assets during development * Call /bootdata and render grafana * set nonce on script * write csp header in index handler * write report-only csp as well * debug stuff * more debug logging * move importing app into a seperate, async-loaded module * Clean up comments * make /femt redirect to / in the frontend * remove console.log * remove stale commented code * call __grafana_load_failed if bootstrap fails * comment for __grafana_boot_data_promise * remove console.log * remove blank newline * codeowners
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
if err != nil {
|
||||
panic(err) // ???
|
||||
}
|
||||
r.Get("/mtfe", index.HandleRequest)
|
||||
r.Get("/femt", index.HandleRequest)
|
||||
|
||||
// Temporarily expose the full bootdata via API
|
||||
r.Get("/bootdata", reqNoAuth, hs.GetBootdata)
|
||||
|
||||
Reference in New Issue
Block a user