From fc37070ac86e9ca325cd0e0d930deffe61b31df7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 9 Mar 2024 12:44:56 -0500 Subject: [PATCH] fix: variable shadowing in API router registration --- server/routes/api/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/api/index.ts b/server/routes/api/index.ts index 00cc0223e..20a923b50 100644 --- a/server/routes/api/index.ts +++ b/server/routes/api/index.ts @@ -62,8 +62,8 @@ api.use(editor()); const plugins = PluginManager.getEnabledPlugins(PluginType.API).map( (plugin) => plugin.value ); -for (const router of plugins) { - router.use("/", router.routes()); +for (const plugin of plugins) { + router.use("/", plugin.routes()); } // routes