v0.0.281 typo fix
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 50s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 50s
This commit is contained in:
parent
c3318cc1de
commit
0b85fa5af9
@ -61,7 +61,7 @@ func (w *GinRoutesWrapper) Use(middleware ...gin.HandlerFunc) *GinRoutesWrapper
|
|||||||
func (w *GinRoutesWrapper) WithJSONFilter(filter string) *GinRoutesWrapper {
|
func (w *GinRoutesWrapper) WithJSONFilter(filter string) *GinRoutesWrapper {
|
||||||
defHandler := langext.ArrCopy(w.defaultHandler)
|
defHandler := langext.ArrCopy(w.defaultHandler)
|
||||||
defHandler = append(defHandler, func(g *gin.Context) {
|
defHandler = append(defHandler, func(g *gin.Context) {
|
||||||
g.Set("ginext.jsonfilter", filter)
|
g.Set("goext.jsonfilter", filter)
|
||||||
})
|
})
|
||||||
return &GinRoutesWrapper{wrapper: w.wrapper, routes: w.routes, defaultHandler: defHandler}
|
return &GinRoutesWrapper{wrapper: w.wrapper, routes: w.routes, defaultHandler: defHandler}
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ func (w *GinRouteBuilder) Use(middleware ...gin.HandlerFunc) *GinRouteBuilder {
|
|||||||
|
|
||||||
func (w *GinRouteBuilder) WithJSONFilter(filter string) *GinRouteBuilder {
|
func (w *GinRouteBuilder) WithJSONFilter(filter string) *GinRouteBuilder {
|
||||||
w.handlers = append(w.handlers, func(g *gin.Context) {
|
w.handlers = append(w.handlers, func(g *gin.Context) {
|
||||||
g.Set("ginext.jsonfilter", filter)
|
g.Set("goext.jsonfilter", filter)
|
||||||
})
|
})
|
||||||
return w
|
return w
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.280"
|
const GoextVersion = "0.0.281"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-10-09T09:02:37+0200"
|
const GoextVersionTimestamp = "2023-10-09T09:04:07+0200"
|
||||||
|
Loading…
Reference in New Issue
Block a user