This commit is contained in:
2024-05-02 16:58:01 +01:00
parent 29b69deaf6
commit 7d346ba2ce
3 changed files with 18 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ func (x *Handle) DeleteAuth(path string, authLevel dbtypes.UserType, fn func(c *
}
return fn(c)
}
x.posts = append(x.posts, HandleFunc{path, inner_fn})
x.deletes = append(x.deletes, HandleFunc{path, inner_fn})
}
func DeleteAuthJson[T interface{}](x *Handle, path string, authLevel dbtypes.UserType, fn func(c *Context, obj *T) *Error) {