diff --git a/assets/images/downloads.png b/assets/images/downloads.png new file mode 100644 index 0000000..fc86131 Binary files /dev/null and b/assets/images/downloads.png differ diff --git a/bindata.go b/bindata.go index 3f601d4..88ed89d 100644 --- a/bindata.go +++ b/bindata.go @@ -7,3 +7,7 @@ var TemplatesFS embed.FS //go:embed static/css/* var PublicFS embed.FS + +//go:embed assets/* +var AssetsFS embed.FS + diff --git a/main.go b/main.go index 804e428..0835842 100644 --- a/main.go +++ b/main.go @@ -113,12 +113,15 @@ func init() { log.Println("[ init ] Starting...") templates = template.Must(template.ParseFS(TemplatesFS , "templates/*.html")) + log.Println("[ init ] Templates Loaded") } + func main() { handler := http.NewServeMux() handler.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.FS(PublicFS)))) + handler.Handle("/assets/", http.FileServer(http.FS(AssetsFS))) handler.HandleFunc( "/download",