diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 15:53:08 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 15:53:08 +0530 |
| commit | 56bb199787f8fc80b92779426644250f2709fd36 (patch) | |
| tree | 4fbbce3d746c22a4cbb42ec53a9abd3e698bc67b /internal/api/new.go | |
| parent | 0bf573c82118aaa5b60ab381dee26f43b10004b3 (diff) | |
| download | galleryd-56bb199787f8fc80b92779426644250f2709fd36.tar.xz galleryd-56bb199787f8fc80b92779426644250f2709fd36.zip | |
feat(api): expose gallery photos endpoint
Diffstat (limited to 'internal/api/new.go')
| -rw-r--r-- | internal/api/new.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/api/new.go b/internal/api/new.go index 4941496..a7c122b 100644 --- a/internal/api/new.go +++ b/internal/api/new.go @@ -22,5 +22,10 @@ func New(config Config) *Server { srv.handleHealth, ) + srv.mux.HandleFunc( + "GET /api/photos", + srv.handlePhotos, + ) + return srv } |