feat(fonts): add font endpoints
All checks were successful
build / Go-Build (push) Successful in 27s

This commit is contained in:
2026-02-12 15:41:23 +01:00
parent 35e873397d
commit 6b61fe1e54
3 changed files with 50 additions and 8 deletions

View File

@@ -20,6 +20,14 @@ func PrepareHTTP() {
}
routes.CreateSVG(w, *r)
})
registerAuthorized("/font/", func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "GET":
routes.GetFonts(w, r)
case "POST":
routes.AddFont(w, r)
}
})
}
func Start() {