diff options
Diffstat (limited to 'internal/api/photos.go')
| -rw-r--r-- | internal/api/photos.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/api/photos.go b/internal/api/photos.go index ca6b038..1e9db99 100644 --- a/internal/api/photos.go +++ b/internal/api/photos.go @@ -4,13 +4,18 @@ import ( "encoding/json" "log" "net/http" + + "github.com/RanXom/galleryd/internal/gallery" ) func (s *Server) handlePhotos( w http.ResponseWriter, r *http.Request, ) { - photos, err := s.gallery.Gallery(r.Context()) + photos, err := s.gallery.Gallery( + r.Context(), + gallery.Query{}, + ) if err != nil { log.Printf("build gallery: %v", err) |