Sort messages by creation time

This commit is contained in:
Eli Ribble 2026-03-10 15:46:17 +00:00
parent 78d47c4035
commit 4ac7e29909
No known key found for this signature in database
4 changed files with 37 additions and 6 deletions

View file

@ -19,12 +19,6 @@ import (
var decoder = schema.NewDecoder()
type queryParams struct {
Limit *int `schema:"limit"`
Sort *string `schema:"sort"`
Type *string `schema:"type"`
}
type handlerFunctionGet[T any] func(context.Context, *http.Request, *models.Organization, *models.User, queryParams) (*T, *nhttp.ErrorWithStatus)
type wrappedHandler func(http.ResponseWriter, *http.Request)
type contentAuthenticated[T any] struct {