feat: Add Diyanet API provider

feat: Add UI
This commit is contained in:
abdus committed 2023-03-05 14:41:38 +01:00
1 parent d4ff42387f
commit 93af84cef8
17 files changed
+642 -43

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
package templates
import (
"embed"
"io/fs"
"net/http"
"os"
)
//go:embed static
var staticFS embed.FS
func FS() fs.FS {
if os.Getenv("DEBUG") == "1" {
return os.DirFS("./templates/static")
}
f, _ := fs.Sub(staticFS, "static")
return f
}
func HttpFS() http.FileSystem {
return http.FS(FS())
}