Fix /api/groups routing.