From 31efba3bfa72568a28d58a68f2e213af424e7a68 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 5 Feb 2023 06:30:39 +0400 Subject: [PATCH] Made use of GetServiceByHost in a Stuff handler. --- internal/http/handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index b166dfd..5996f47 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -35,7 +35,8 @@ func (h *Handlers) Index(w http.ResponseWriter, r *http.Request) { } func (h *Handlers) Stuff(w http.ResponseWriter, r *http.Request) { - web.Stuff("/ Stuff", "", "", w) + web.Stuff("/ Stuff", util.GetServiceByHost(r.Host, util.ServiceGit), + util.GetServiceByHost(r.Host, util.ServiceFiles), w) } func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) {