embed assets and minor fixes
This commit is contained in:
13
assets/kurious/embed.go
Normal file
13
assets/kurious/embed.go
Normal file
@ -0,0 +1,13 @@
|
||||
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))
|
||||
}
|
||||
2
assets/kurious/robots.txt
Normal file
2
assets/kurious/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-agent:
|
||||
Disallow: /
|
||||
Reference in New Issue
Block a user