drop /visits path in script
This is better mapped with the reverse proxy.
This commit is contained in:
parent
6bb712db98
commit
66c6903e94
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue