Refactor server: use render func for templates

This commit is contained in:
bronku 2025-03-22 23:46:33 +01:00
parent ca4e448f82
commit a7bd1478bf
6 changed files with 60 additions and 39 deletions

5
server/fetcher.go Normal file
View file

@ -0,0 +1,5 @@
package server
import "net/http"
type fetcher func(r *http.Request) (any, error)