fix address binding
This commit is contained in:
parent
399cfd827d
commit
025596162c
2
main.go
2
main.go
@ -130,7 +130,7 @@ func main() {
|
|||||||
router.HandleFunc("PATCH /todos/{id}/undone", todoHandler.Undone)
|
router.HandleFunc("PATCH /todos/{id}/undone", todoHandler.Undone)
|
||||||
|
|
||||||
server := http.Server{
|
server := http.Server{
|
||||||
Addr: "localhost:3000",
|
Addr: ":3000",
|
||||||
Handler: middleware.LoggingMiddleware(router),
|
Handler: middleware.LoggingMiddleware(router),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user