mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
11 lines
317 B
Go
11 lines
317 B
Go
package filemanager
|
|
|
|
import "net/http"
|
|
|
|
// ServeSingleFile redirects the request for the respective method
|
|
func (f FileManager) ServeSingleFile(w http.ResponseWriter, r *http.Request, file http.File, c *Config) (int, error) {
|
|
w.Header().Set("Content-Type", "text/plain")
|
|
w.Write([]byte("Hello"))
|
|
return 200, nil
|
|
}
|