Merge branch 'dev' into feat/template
All checks were successful
build / Go-Build (push) Successful in 1m8s
build / Go-Build (pull_request) Successful in 28s

This commit is contained in:
2026-02-12 19:46:30 +01:00
6 changed files with 134 additions and 4 deletions

View File

@@ -28,6 +28,14 @@ func PrepareHTTP() {
}
routes.DownloadSVG(w, r)
})
registerAuthorizedFunc("/font/", func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "GET":
routes.GetFonts(w, r)
case "POST":
routes.AddFont(w, r)
}
})
http.Handle("/public/", http.StripPrefix("/public/", http.FileServer(svg.Storage.GetPublicDir())))
}