feat: Add Diyanet API provider
feat: Add UI
This commit is contained in:
1 parent
d4ff42387f
commit
93af84cef8
17 files changed
+642
-43
No files matched your search
@@ -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())
|
||||
}
|
||||
Reference in new issue
Block a user