fix: lighthouse fixes

This commit is contained in:
Stavros
2026-04-14 13:16:15 +03:00
parent 6f99e7acff
commit 93d6191139
5 changed files with 52 additions and 36 deletions

View File

@@ -46,6 +46,11 @@ func (m *UIMiddleware) Middleware() gin.HandlerFunc {
case "api", "resources", ".well-known":
c.Next()
return
case "robots.txt":
c.Writer.Header().Set("Content-Type", "text/plain")
c.Writer.WriteHeader(http.StatusOK)
c.Writer.Write([]byte("User-agent: *\nDisallow: /\n"))
return
default:
_, err := fs.Stat(m.uiFs, path)