From 810b3517725b7e1c4f66ec9e40400bf1d1cf24dd Mon Sep 17 00:00:00 2001 From: Pontus Jensen Karlsson Date: Sun, 18 Aug 2024 20:53:19 +0200 Subject: feat: add API routes `/v1/enclosures/{enclosureID}` --- internal/api/api.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/api/api.go') diff --git a/internal/api/api.go b/internal/api/api.go index 2963a990..1109acda 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -72,6 +72,8 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) { sr.HandleFunc("/entries/{entryID}/fetch-content", handler.fetchContent).Methods(http.MethodGet) sr.HandleFunc("/flush-history", handler.flushHistory).Methods(http.MethodPut, http.MethodDelete) sr.HandleFunc("/icons/{iconID}", handler.getIconByIconID).Methods(http.MethodGet) + sr.HandleFunc("/enclosures/{enclosureID}", handler.getEnclosureById).Methods(http.MethodGet) + sr.HandleFunc("/enclosures/{enclosureID}", handler.updateEnclosureById).Methods(http.MethodPut) sr.HandleFunc("/version", handler.versionHandler).Methods(http.MethodGet) } -- cgit v1.2.3