embed assets and minor fixes

This commit is contained in:
Aleksandr Trushkin
2024-01-09 15:19:53 +03:00
parent 2c0564f68c
commit 728c8fa59e
5 changed files with 96 additions and 64 deletions

13
assets/kurious/embed.go Normal file
View 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))
}

View File

@ -0,0 +1,2 @@
User-agent:
Disallow: /