diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 19:42:27 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 19:42:27 +0530 |
| commit | 8e8f0bd38f0cc0ee435ae2ed392a206e1ea73a32 (patch) | |
| tree | 93ec34c177b6a48d90d5024313c3a10f5b7c5d2b /internal/api/new.go | |
| parent | 5f9a07afe0fd42cd9870c864eb30941343bf51e9 (diff) | |
| download | galleryd-8e8f0bd38f0cc0ee435ae2ed392a206e1ea73a32.tar.xz galleryd-8e8f0bd38f0cc0ee435ae2ed392a206e1ea73a32.zip | |
feat(api): serve original photos
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 e2399e5..7febfe7 100644 --- a/internal/api/new.go +++ b/internal/api/new.go @@ -35,5 +35,10 @@ func New(config Config) *Server { srv.handleThumbnail, ) + srv.mux.HandleFunc( + "GET /photo/{id}", + srv.handlePhoto, + ) + return srv } |