summaryrefslogtreecommitdiff
path: root/internal/server/router.go
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-04-02 12:29:25 +0300
committerGrailFinder <wohilas@gmail.com>2024-04-02 12:29:25 +0300
commit925b7b7a6a6de1f40262d0fc96be7920b26b0021 (patch)
tree100895b2c086d5764565d44de2e18453b2a85ad2 /internal/server/router.go
parent878b071112d7484fd9b22d70ee06afe895de9018 (diff)
Feat: add htmx to show|hide form
Diffstat (limited to 'internal/server/router.go')
-rw-r--r--internal/server/router.go4
1 files changed, 4 insertions, 0 deletions
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()
}