mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
fix Static content mistake
This commit is contained in:
parent
b8c4e766da
commit
243adec807
@ -183,7 +183,7 @@ func (group *RouterGroup) StaticFileFS(relativePath, filepath string, fs http.Fi
|
||||
// of the Router's NotFound handler.
|
||||
// To use the operating system's file system implementation,
|
||||
// use :
|
||||
// router.Static("/static", "/var/www", http)
|
||||
// router.Static("/static", "/var/www")
|
||||
func (group *RouterGroup) Static(relativePath, root string) IRoutes {
|
||||
return group.StaticFS(relativePath, Dir(root, false))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user