Skip to content

Commit

Permalink
change static handler from m.Get to m.Any due to breaking compatibiti…
Browse files Browse the repository at this point in the history
…ly of routing order of martini
  • Loading branch information
acidlemon committed May 22, 2015
1 parent c7564f6 commit e31486d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions httpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import (

"encoding/base64"

"path/filepath"

"github.com/go-martini/martini"
"github.com/martini-contrib/oauth2"
"github.com/martini-contrib/sessions"
"path/filepath"
)

type Server struct {
Expand Down Expand Up @@ -102,7 +103,7 @@ func (s *Server) Run() error {

log.Printf("starting static file server for: %s", path)
fileServer := http.FileServer(http.Dir(path))
m.Get("/**", fileServer.ServeHTTP)
m.Any("/**", fileServer.ServeHTTP)

log.Printf("starting server at %s", s.Conf.Addr)

Expand Down

0 comments on commit e31486d

Please sign in to comment.