From 39a926cd521806aedc298ddd671d1a118794fcec Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Wed, 17 Sep 2025 18:13:30 +0100 Subject: Add endpoints for web extension --- api/dto/entry.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'api/dto') diff --git a/api/dto/entry.go b/api/dto/entry.go index 85e39f3..8346b18 100644 --- a/api/dto/entry.go +++ b/api/dto/entry.go @@ -5,5 +5,17 @@ type CreateEntryRequest struct { Kind string `json:"kind"` Url string `json:"url"` Description string `json:"description"` - Token string `json:"token"` +} + +type UpdateEntryRequest struct { + Id int64 `json:"id"` + Kind string `json:"kind"` +} + +type DeleteEntryRequest struct { + Id int64 `json:"id"` +} + +type GetEntryRequest struct { + Url string `json:"url"` } -- cgit v1.2.3-70-g09d2