aboutsummaryrefslogtreecommitdiff
path: root/internal/api/photo.go
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-13 15:53:08 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-13 15:53:08 +0530
commit56bb199787f8fc80b92779426644250f2709fd36 (patch)
tree4fbbce3d746c22a4cbb42ec53a9abd3e698bc67b /internal/api/photo.go
parent0bf573c82118aaa5b60ab381dee26f43b10004b3 (diff)
downloadgalleryd-56bb199787f8fc80b92779426644250f2709fd36.tar.xz
galleryd-56bb199787f8fc80b92779426644250f2709fd36.zip
feat(api): expose gallery photos endpoint
Diffstat (limited to 'internal/api/photo.go')
-rw-r--r--internal/api/photo.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/api/photo.go b/internal/api/photo.go
new file mode 100644
index 0000000..7174491
--- /dev/null
+++ b/internal/api/photo.go
@@ -0,0 +1,12 @@
+package api
+
+import "time"
+
+type photoResponse struct {
+ ID string `json:"id"`
+ DateTaken time.Time `json:"dateTaken"`
+ Width int `json:"width"`
+ Height int `json:"height"`
+ ThumbnailURL string `json:"thumbnail"`
+ PhotoURL string `json:"photo"`
+}