Initial commit

This commit is contained in:
2025-05-22 18:08:15 +02:00
commit 364ffa15de
33 changed files with 900 additions and 0 deletions

16
static/serveStatic.go Normal file
View File

@@ -0,0 +1,16 @@
//go:build serveStatic
package static
import (
"embed"
"net/http"
)
//go:embed static/*
var staticFS embed.FS
func InitHttpHandlers() {
fs := http.FileServerFS(staticFS)
http.Handle("/static/", http.StripPrefix("/static", fs))
}