Files
svg-templater/internal/routes/font.go
Tueem 7a9cf7ab93
All checks were successful
build / Go-Build (pull_request) Successful in 1m24s
build / Go-Build (push) Successful in 38s
feat(fonts): add fonts storage
2026-02-12 14:16:37 +01:00

13 lines
208 B
Go

package routes
import "net/http"
func AddFont(w http.ResponseWriter, r *http.Request) {
if r.Header.Get("Content-Type") != "font/ttf" {
http.Error(w, "", http.StatusUnsupportedMediaType)
return
}
}