drop /visits path in script

This is better mapped with the reverse proxy.
This commit is contained in:
Alexander Khodyrev 2024-09-14 10:23:38 +03:00
parent 6bb712db98
commit 66c6903e94

View file

@ -88,7 +88,7 @@ func main() {
store := visitsStore{m: initialVisits, RWMutex: &sync.RWMutex{}}
visitsH := &visitsHandler{store: &store}
http.Handle("/visits", visitsH)
http.Handle("/", visitsH)
log.Println("Starting web server...")
http.ListenAndServe(*addr, nil)