- FileFromFS with http.FS(embedFS) returned 301 redirects due to Gin setting c.Request.URL.Path to a relative path for http.FileServer - Replace with direct fs.ReadFile + Gin c.Data, determining content type via mime.TypeByExtension - Supports all asset types (JS, CSS, SVG, HTML) and SPA fallback
4.7 KiB
4.7 KiB