Refactor: Fetch handler to return status code

This commit is contained in:
bronku 2025-03-22 23:53:38 +01:00
parent a7bd1478bf
commit 47323b32f8
4 changed files with 13 additions and 12 deletions

View file

@ -2,4 +2,4 @@ package server
import "net/http"
type fetcher func(r *http.Request) (any, error)
type fetcher func(r *http.Request) (any, int, error)