style(webui): rewrap the assets comment
This commit is contained in:
1 parent
116b03534f
commit
116f8a10fb
1 file changed
+3
-2
@@ -401,8 +401,9 @@ func (s *Server) handleHealthz(w http.ResponseWriter, _ *http.Request) {
|
||||
}
|
||||
|
||||
// assets serves the embedded dashboard, falling back to index.html so client
|
||||
// routes deep-link correctly. An unserved /api path is a 404, never the page. Under the no_ui build tag the assets are absent
|
||||
// and a plain explanation is served instead of a confusing 404.
|
||||
// routes deep-link correctly. An unserved /api path is a 404, never the page.
|
||||
// Under the no_ui build tag the assets are absent and a plain explanation is
|
||||
// served instead of a confusing 404.
|
||||
func (s *Server) assets() http.Handler {
|
||||
if ui.DistDirFS == nil {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
|
||||
Reference in new issue
Block a user