File sends a response with the content of the file. Avoid using the leading `/` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.
(file string)
| 659 | // Avoid using the leading `/` slash as most of the Go standard library fs.FS implementations require relative paths for |
| 660 | // file operations. |
| 661 | func (c *Context) File(file string) error { |
| 662 | return fsFile(c, file, c.echo.Filesystem) |
| 663 | } |
| 664 | |
| 665 | // FileFS serves file from given file system. |
| 666 | // |
no test coverage detected