diff --git a/handlers/server.go b/handlers/server.go index 73c952b..fc59139 100644 --- a/handlers/server.go +++ b/handlers/server.go @@ -29,7 +29,7 @@ func PostServerProfileAction(c *fiber.Ctx) error { multiUpdate := []aid.JSON{} notifications := []aid.JSON{} - if action, ok := serverActions[c.Query("action")]; ok { + if action, ok := serverActions[c.Params("action")]; ok { if err := action(c, person, profile, &profileChanges, &multiUpdate, ¬ifications); err != nil { return c.Status(500).JSON(aid.ErrorBadRequest(err.Error())) }