diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 18:45:47 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 18:45:47 +0530 |
| commit | fdf1148db3c37d1be83ea4d52ac370c5da9593a4 (patch) | |
| tree | 7153ce25c29794c469af518ad1eaee2c08bb8ba5 /internal/api/new.go | |
| parent | ef5a8b157db8361d2a592f1481ba809ca49dc57d (diff) | |
| download | galleryd-fdf1148db3c37d1be83ea4d52ac370c5da9593a4.tar.xz galleryd-fdf1148db3c37d1be83ea4d52ac370c5da9593a4.zip | |
feat(api): inject thumbnail generator
Diffstat (limited to 'internal/api/new.go')
| -rw-r--r-- | internal/api/new.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/internal/api/new.go b/internal/api/new.go index a7c122b..7066d90 100644 --- a/internal/api/new.go +++ b/internal/api/new.go @@ -11,10 +11,13 @@ func New(config Config) *Server { } srv := &Server{ - config: config, - mux: mux, - http: server, - gallery: config.Gallery, + config: config, + + mux: mux, + http: server, + + gallery: config.Gallery, + thumbnail: config.Thumbnails, } srv.mux.HandleFunc( |