From 925b7b7a6a6de1f40262d0fc96be7920b26b0021 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Tue, 2 Apr 2024 12:29:25 +0300 Subject: Feat: add htmx to show|hide form --- internal/server/router.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/server') diff --git a/internal/server/router.go b/internal/server/router.go index 9b03371..726f8b8 100644 --- a/internal/server/router.go +++ b/internal/server/router.go @@ -23,6 +23,10 @@ func (srv *server) ListenToRequests() { mux.HandleFunc("GET /", h.MainPage) mux.HandleFunc("POST /", h.HandleForm) + // ====== elements ====== + mux.HandleFunc("GET /showform", h.ServeShowForm) + mux.HandleFunc("GET /hideform", h.ServeHideForm) + fmt.Printf("Listening on %v\n", server.Addr) server.ListenAndServe() } -- cgit v1.2.3