POST:/users works

This commit is contained in:
2022-11-18 21:25:40 +01:00
parent 34a27d9ca4
commit 5991631bfa
44 changed files with 2131 additions and 737 deletions
+4 -4
View File
@@ -6,15 +6,15 @@ type WHandlerFunc func(*gin.Context) HTTPResponse
func Wrap(fn WHandlerFunc) gin.HandlerFunc {
return func(context *gin.Context) {
return func(g *gin.Context) {
wrap := fn(context)
wrap := fn(g)
if context.Writer.Written() {
if g.Writer.Written() {
panic("Writing in WrapperFunc is not supported")
}
wrap.Write(context)
wrap.Write(g)
}