if err := json.Unmarshal(creditNotices, &inventory); err != nil {
23
panic(err)
24
}
25
return inventory
26
}()
27
28
func (a *App) mountCredits(r chi.Router) {
29
r.Get("/help/open-source", func(w http.ResponseWriter, r *http.Request) {
30
31
a.render(w, r, http.StatusOK, "credits.html", credits.PageData{Title: "Open source", MissingNoticeLabel: "No notice file is included in this release.", Components: embeddedCredits.Components})