From 7c1d9647f03256179ecfbcb3677a10911f517633 Mon Sep 17 00:00:00 2001
From: Ngoc Khuat <qn.khuat@gmail.com>
Date: Tue, 10 Oct 2023 16:07:41 +0700
Subject: [PATCH] defendpoint without redefine routes (#34513)

---
 src/metabase/api/common.clj | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/metabase/api/common.clj b/src/metabase/api/common.clj
index 769862011bd..4928c02bf24 100644
--- a/src/metabase/api/common.clj
+++ b/src/metabase/api/common.clj
@@ -331,9 +331,9 @@
 (defn- namespace->api-route-fns
   "Return a sequence of all API endpoint functions defined by `defendpoint` in a namespace."
   [nmspace]
-  (for [[symb varr] (ns-publics nmspace)
+  (for [[_symb varr] (ns-publics nmspace)
         :when       (:is-endpoint? (meta varr))]
-    symb))
+    varr))
 
 (defn- api-routes-docstring [nmspace route-fns middleware]
   (str
-- 
GitLab