//go:build !exclude_frontend package frontend import ( "bytes" "embed" "fmt" "io" "io/fs" "net/http" "os" "strings" "time" "github.com/gin-gonic/gin" "github.com/pocket-id/pocket-id/backend/internal/middleware" ) //go:embed all:dist/* var frontendFS embed.FS // This function, created by the init() method, writes to "w" the index.html page, populating the nonce var writeIndexFn func(w io.Writer, nonce string) error func init() { const scriptTag = "