dex/web/web.go
Mark Sagi-Kazar 78fcac7568
feat: embed web assets
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-03-22 11:05:50 +01:00

14 lines
194 B
Go

package web
import (
"embed"
"io/fs"
)
//go:embed static/* templates/* themes/*
var files embed.FS
// FS returns a filesystem with the default web assets.
func FS() fs.FS {
return files
}