Refactor: Fetch handler to return status code
This commit is contained in:
parent
a7bd1478bf
commit
47323b32f8
4 changed files with 13 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue