mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
14 lines
199 B
Go
14 lines
199 B
Go
package render
|
|
|
|
import "net/http"
|
|
|
|
type File struct {
|
|
Path string
|
|
Request *http.Request
|
|
}
|
|
|
|
func (r File) Write(w http.ResponseWriter) error {
|
|
http.ServeFile(w, r.Request, r.Path)
|
|
return nil
|
|
}
|