Skip to content

Commit

Permalink
Do not return apis when enabled=false.
Browse files Browse the repository at this point in the history
As APIs are currently registered at server start, they are effectively always enabled.
  • Loading branch information
panaaj committed Apr 19, 2024
1 parent ed1ef16 commit 458ee4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Server {
// feature detection
app.getFeatures = async (enabled?: boolean) => {
return {
apis: app.apis,
apis: enabled === false ? [] : app.apis,
plugins: await app.getPluginsList(enabled)
}
}
Expand Down

0 comments on commit 458ee4c

Please sign in to comment.