StaticFile is a wrapper for Engine.StaticFile.
(relativePath, filepath string)
| 99 | |
| 100 | // StaticFile is a wrapper for Engine.StaticFile. |
| 101 | func StaticFile(relativePath, filepath string) gin.IRoutes { |
| 102 | return engine().StaticFile(relativePath, filepath) |
| 103 | } |
| 104 | |
| 105 | // Static serves files from the given file system root. |
| 106 | // Internally a http.FileServer is used, therefore http.NotFound is used instead |