Skip to content

Commit

Permalink
fix double pointer on setvalue middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertWHurst committed Feb 7, 2025
1 parent f62720c commit 8b36b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/set-value/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package setvalue

import "github.com/RobertWHurst/navaros"

func Middleware[V *any](key string, value V) func(ctx *navaros.Context) {
func Middleware[V any](key string, value *V) func(ctx *navaros.Context) {
return func(ctx *navaros.Context) {
ctx.Set(key, *value)
ctx.Next()
Expand Down

0 comments on commit 8b36b23

Please sign in to comment.