chore: Add eslint rule for no-shadow (#6658)
* chore: Add eslint rule for no-shadow * fix
This commit is contained in:
@@ -59,12 +59,9 @@ api.use(apiResponse());
|
||||
api.use(editor());
|
||||
|
||||
// Register plugin API routes before others to allow for overrides
|
||||
const plugins = PluginManager.getEnabledPlugins(PluginType.API).map(
|
||||
(plugin) => plugin.value
|
||||
PluginManager.getEnabledPlugins(PluginType.API).forEach((plugin) =>
|
||||
router.use("/", plugin.value.routes())
|
||||
);
|
||||
for (const plugin of plugins) {
|
||||
router.use("/", plugin.routes());
|
||||
}
|
||||
|
||||
// routes
|
||||
router.use("/", auth.routes());
|
||||
|
||||
Reference in New Issue
Block a user