Feat(plugins) Pass plugin options to the routes to be able to access specific options from the plugin configuration (#959)
This commit is contained in:
1 parent
180fb17503
commit
ae839513b8
1 file changed
+1
-1
@@ -175,7 +175,7 @@ function registerApi(
|
||||
try {
|
||||
const routes = require(`${pluginDetails.resolve}/api`).default
|
||||
if (routes) {
|
||||
app.use("/", routes(rootDirectory))
|
||||
app.use("/", routes(rootDirectory, pluginDetails.options))
|
||||
}
|
||||
return app
|
||||
} catch (err) {
|
||||
|
||||
Reference in new issue
Block a user