Merge branch 'dev' into feat/template
This commit is contained in:
@@ -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())))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user