fix: variable shadowing in API router registration

This commit is contained in:
Tom Moor
2024-03-09 12:44:56 -05:00
parent 128f6cca77
commit fc37070ac8

View File

@@ -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