14 lines
181 B
Go
14 lines
181 B
Go
package kurious
|
|
|
|
import (
|
|
"embed"
|
|
"net/http"
|
|
)
|
|
|
|
//go:embed robots.txt static/*
|
|
var root embed.FS
|
|
|
|
func AsHTTPFileHandler() http.Handler {
|
|
return http.FileServer(http.FS(root))
|
|
}
|