From eac81778bddc44e5377132dbbcff234f7601fefd Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 11 May 2026 23:20:44 +0000 Subject: [PATCH] Switch authenticated single GET to not require returning a pointer --- api/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler.go b/api/handler.go index 70ba2772..a5cc95c3 100644 --- a/api/handler.go +++ b/api/handler.go @@ -28,7 +28,7 @@ type handlerBase func(context.Context, http.ResponseWriter, *http.Request) *nhtt type handlerBaseAuthenticated func(context.Context, http.ResponseWriter, *http.Request, platform.User) *nhttp.ErrorWithStatus type handlerFunctionDelete func(context.Context, *http.Request, platform.User) *nhttp.ErrorWithStatus type handlerFunctionGet[T any] func(context.Context, *http.Request, resource.QueryParams) (*T, *nhttp.ErrorWithStatus) -type handlerFunctionGetAuthenticated[T any] func(context.Context, *http.Request, platform.User, resource.QueryParams) (*T, *nhttp.ErrorWithStatus) +type handlerFunctionGetAuthenticated[T any] func(context.Context, *http.Request, platform.User, resource.QueryParams) (T, *nhttp.ErrorWithStatus) type handlerFunctionGetImage func(context.Context, *http.Request, platform.User) (file.Collection, uuid.UUID, *nhttp.ErrorWithStatus) type handlerFunctionGetSlice[T any] func(context.Context, *http.Request, resource.QueryParams) ([]*T, *nhttp.ErrorWithStatus) type handlerFunctionGetSliceAuthenticated[T any] func(context.Context, *http.Request, platform.User, resource.QueryParams) ([]T, *nhttp.ErrorWithStatus)