From e66691083a2455c29b50a2970c0aba1d6afca753 Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 23 Oct 2024 20:34:57 +0200 Subject: Switch to http.Handler The used `func(http.ResponseWriter, *http.Request)` return values made the HTTP handler factory functions quite unreadable. Thus it is switched to the http.Handler type. --- view/index_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/index_test.go') diff --git a/view/index_test.go b/view/index_test.go index 3ab35d5..68167f6 100644 --- a/view/index_test.go +++ b/view/index_test.go @@ -14,7 +14,7 @@ func TestIndexRead(t *testing.T) { rec := httptest.NewRecorder() - handler := http.HandlerFunc(IndexRead) + handler := IndexRead() handler.ServeHTTP(rec, req) if rec.Code != http.StatusSeeOther { -- cgit v1.2.3-70-g09d2