aboutsummaryrefslogtreecommitdiff
path: root/internal/api/server.go
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-13 18:45:47 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-13 18:45:47 +0530
commitfdf1148db3c37d1be83ea4d52ac370c5da9593a4 (patch)
tree7153ce25c29794c469af518ad1eaee2c08bb8ba5 /internal/api/server.go
parentef5a8b157db8361d2a592f1481ba809ca49dc57d (diff)
downloadgalleryd-fdf1148db3c37d1be83ea4d52ac370c5da9593a4.tar.xz
galleryd-fdf1148db3c37d1be83ea4d52ac370c5da9593a4.zip
feat(api): inject thumbnail generator
Diffstat (limited to 'internal/api/server.go')
-rw-r--r--internal/api/server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index c12c5bd..2bec8e2 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -4,6 +4,7 @@ import (
"net/http"
"github.com/RanXom/galleryd/internal/service"
+ "github.com/RanXom/galleryd/internal/thumbnail"
)
// Server exposes the gallery over HTTP
@@ -13,5 +14,6 @@ type Server struct {
mux *http.ServeMux
http *http.Server
- gallery service.GalleryService
+ gallery service.GalleryService
+ thumbnail *thumbnail.Generator
}