Skip to content

Commit

Permalink
udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
orca-zhang committed Oct 25, 2024
1 parent 9d36af2 commit c1ae27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/static_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (c *CustomFileInfo) ModTime() time.Time {
return startTime
}

var indexRE = regexp.MustCompile(`/modules/[^\/]*/($|(index\.(html?|aspx?|cgi|do|jsp))|((default|index|home)\.php))`)
var indexRE = regexp.MustCompile(`/($|/modules/[^\/]*/($|(index\.(html?|aspx?|cgi|do|jsp))|((default|index|home)\.php)))`)

func (s *StaticRoute) GetRoute() http.Handler {
e := echo.New()
Expand Down

0 comments on commit c1ae27e

Please sign in to comment.