1
0

Made use of GetServiceByHost in a Stuff handler.

This commit is contained in:
Alexander Andreev 2023-02-05 06:30:39 +04:00
parent 7a1c984750
commit 31efba3bfa
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -35,7 +35,8 @@ func (h *Handlers) Index(w http.ResponseWriter, r *http.Request) {
} }
func (h *Handlers) Stuff(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) { func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) {