summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server')
-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()
}