From 9e779891fa91f44a9734b79ccb4f6aef48a0de3f Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 18 Sep 2025 21:00:28 +0100 Subject: Add filters on html page --- api/router.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api/router.go') diff --git a/api/router.go b/api/router.go index 89abbc0..94ec88d 100644 --- a/api/router.go +++ b/api/router.go @@ -8,10 +8,12 @@ import ( "git.leonardobishop.net/stash/internal/config" "git.leonardobishop.net/stash/pkg/entries" "git.leonardobishop.net/stash/pkg/html" + "git.leonardobishop.net/stash/pkg/kinds" ) type ApiServices struct { EntiresService entries.Service + KindsService kinds.Service HtmlService html.Service Config *config.Config @@ -28,7 +30,7 @@ func NewServer(api ApiServices) *http.ServeMux { mux.HandleFunc("DELETE /record", cors(auth(handlers.DeleteEntry(api.EntiresService)))) mux.HandleFunc("GET /entry", cors(auth(handlers.GetEntryURLs(api.EntiresService)))) mux.HandleFunc("POST /entry", cors(auth(handlers.GetEntry(api.EntiresService)))) - mux.HandleFunc("GET /html", handlers.GetEntriesHtml(api.EntiresService, api.HtmlService)) + mux.HandleFunc("GET /html", handlers.GetEntriesHtml(api.EntiresService, api.KindsService, api.HtmlService)) mux.HandleFunc("GET /", handlers.Pong()) return mux -- cgit v1.2.3-70-g09d2