Skip to content

Commit

Permalink
Provide some stats
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasinsaurralde committed Jun 12, 2016
1 parent 3492145 commit 662e38a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"errors"
"fmt"
"net/http"

"github.com/fukata/golang-stats-api-handler"
)

type Proxy struct {
Expand All @@ -26,6 +28,8 @@ func (proxy *Proxy) Listen() {
transport.Prepare()

http.HandleFunc("/", transport.Handler)
http.HandleFunc( "/stats", stats_api.Handler )

http.ListenAndServe(":8080", nil)

return
Expand Down

0 comments on commit 662e38a

Please sign in to comment.