(w http.ResponseWriter, r *http.Request)
| 254 | } |
| 255 | |
| 256 | func (s *Server) appGetCollection(w http.ResponseWriter, r *http.Request) { |
| 257 | c, ok := s.appVisibleCollection(w, r, chi.URLParam(r, "collSlug")) |
| 258 | if !ok { |
| 259 | return |
| 260 | } |
| 261 | writeAppJSON(w, http.StatusOK, s.appCollectionDTO(c)) |
| 262 | } |
| 263 | |
| 264 | // appItemDTOs builds the item DTOs, etag and app metadata included. |
| 265 | func (s *Server) appItemDTOs(r *http.Request, items []models.Item, c *models.Collection) ([]AppItem, error) { |
nothing calls this directly
no test coverage detected