|
|
@ -38,6 +38,15 @@ func (r *Routes) usePostfixForce(c *routing.Context) (err error) { |
|
|
|
return c.Next() |
|
|
|
return c.Next() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fullPath = bytes.TrimRightFunc(fullPath, func(r rune) bool { |
|
|
|
|
|
|
|
switch r { |
|
|
|
|
|
|
|
case '/': |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
fullPath = append(fullPath, '.') |
|
|
|
fullPath = append(fullPath, '.') |
|
|
|
fullPath = append(fullPath, []byte(templates.URLPostfix)...) |
|
|
|
fullPath = append(fullPath, []byte(templates.URLPostfix)...) |
|
|
|
|
|
|
|
|
|
|
|