View definition

(*RouterGroup).Static

Defined in github.com/gin-gonic/gin/routergroup.go

Description

Static serves files from the given file system root. Internally a http.FileServer is used, therefore http.NotFound is used instead of the Router's NotFound handler. To use the operating system's file system implementation, use :

router.Static("/static", "/var/www")

Static is referenced in 30 repositories

github.com/gin-gonic/gin github.com/housinganywhere/ha github.com/zikeji/prv.us-URL-Shortener

...