feat(fonts): add font endpoints
All checks were successful
build / Go-Build (push) Successful in 27s
All checks were successful
build / Go-Build (push) Successful in 27s
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user