aboutsummaryrefslogtreecommitdiff
path: root/internal/api/photos.go
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-17 16:42:21 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-17 16:42:21 +0530
commit9237991fa79f9b90a3f14f8b3c42dab25d029f05 (patch)
tree1df25421e3a5f6aafa2cecf7aa063d1b8cd1e65d /internal/api/photos.go
parent46d2bf8bb5a0d18bdbe613a9346a5757b39e0a35 (diff)
downloadgalleryd-9237991fa79f9b90a3f14f8b3c42dab25d029f05.tar.xz
galleryd-9237991fa79f9b90a3f14f8b3c42dab25d029f05.zip
feat(gallery): introduce gallery query
Diffstat (limited to 'internal/api/photos.go')
-rw-r--r--internal/api/photos.go7
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)