This commit is contained in:
2026-08-04 15:28:48 +02:00
parent fa7835c7e6
commit 96392b78bf
6 changed files with 232 additions and 21 deletions
+11
View File
@@ -62,6 +62,17 @@ func (gc *GroupController) GroupHandler(c *gin.Context) {
return
}
if action == "addCard" {
cardName := c.PostForm("Name")
_, err := services.Cards.Create(c, cardName, int32(id))
if err != nil {
fmt.Println(err)
c.HTML(http.StatusBadRequest, "accessauths.html", gin.H{"error": err})
return
}
}
if action == "delete" {
err := services.Groups.Delete(c, int32(id))