Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatanabe committed Nov 27, 2017
1 parent 104084a commit 9af88d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func Logging(next http.Handler) http.Handler {
You can add some addon handler. (git archive)
``` go
import (
"github.com/nulab/go-git-http-xfer/addon/archivehandler"
"github.com/nulab/go-git-http-xfer/addon/handler/archive"
)

func main() {
Expand All @@ -152,9 +152,9 @@ func main() {
}

ghx.Router.Add(githttpxfer.NewRoute(
archivehandler.Method,
archivehandler.Pattern,
archivehandler.New(ghx).HandlerFunc,
archive.Method,
archive.Pattern,
archive.New(ghx).Archive,
))

if err := http.ListenAndServe(":5050", ghx); err != nil {
Expand Down

0 comments on commit 9af88d3

Please sign in to comment.