package bot import ( "encoding/json" "fmt" "net/http" "strings" ) func (b *bot) serveRoot(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, rootIndex) } func (b *bot) serveNav(w http.ResponseWriter, r *http.Request) { enc := json.NewEncoder(w) err := enc.Encode(b.GetWebNavigation()) if err != nil { jsonErr, _ := json.Marshal(err) w.WriteHeader(500) w.Write(jsonErr) } } // GetWebNavigation returns a list of bootstrap-vue links // The parent