Drop availableVersion and releaseNotes from state api
This commit is contained in:
parent
d6c2eecd13
commit
c69cec3728
1 changed files with 3 additions and 0 deletions
|
|
@ -158,6 +158,9 @@ func TemplatesHandler() http.HandlerFunc {
|
|||
func StateHandler(cache *util.Cache) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
res := cache.State()
|
||||
for _, k := range []string{"availableVersion", "releaseNotes"} {
|
||||
delete(res, k)
|
||||
}
|
||||
jsonResponse(w, r, res)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue