This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/static_outpost.go

20 lines
274 B
Go

//go:build outpost_static_embed
// +build outpost_static_embed
package web
import (
"embed"
"net/http"
)
//go:embed dist/*
var StaticDist embed.FS
//go:embed authentik
var StaticAuthentik embed.FS
func init() {
StaticHandler = http.FileServer(http.FS(StaticDist))
}