diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-27 10:21:24 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-05-04 16:21:39 +0200 |
commit | 2db9c70f670c2210d103062fa143dc4888caa190 (patch) | |
tree | 971bfc686c4004000112135f3e82f00f6d47d889 /support/doc | |
parent | 055cfb11a9d688dbc2dce5c164d1f0b311918378 (diff) | |
download | PeerTube-2db9c70f670c2210d103062fa143dc4888caa190.tar.gz PeerTube-2db9c70f670c2210d103062fa143dc4888caa190.tar.zst PeerTube-2db9c70f670c2210d103062fa143dc4888caa190.zip |
Add getSettings documentation
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/plugins/guide.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index fdad63087..81691c8c1 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md | |||
@@ -157,6 +157,9 @@ registerSetting({ | |||
157 | }) | 157 | }) |
158 | 158 | ||
159 | const adminName = await settingsManager.getSetting('admin-name') | 159 | const adminName = await settingsManager.getSetting('admin-name') |
160 | |||
161 | const result = await settingsManager.getSettings([ 'admin-name', 'admin-password' ]) | ||
162 | result['admin-name] | ||
160 | ``` | 163 | ``` |
161 | 164 | ||
162 | #### Storage | 165 | #### Storage |