diff options
Diffstat (limited to 'support/doc/plugins')
-rw-r--r-- | support/doc/plugins/guide.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index bc10e624d..20cbec5c7 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md | |||
@@ -22,6 +22,7 @@ | |||
22 | - [Custom Modal](#custom-modal) | 22 | - [Custom Modal](#custom-modal) |
23 | - [Translate](#translate) | 23 | - [Translate](#translate) |
24 | - [Get public settings](#get-public-settings) | 24 | - [Get public settings](#get-public-settings) |
25 | - [Get server config](#get-server-config) | ||
25 | - [Add custom fields to video form](#add-custom-fields-to-video-form) | 26 | - [Add custom fields to video form](#add-custom-fields-to-video-form) |
26 | - [Publishing](#publishing) | 27 | - [Publishing](#publishing) |
27 | - [Write a plugin/theme](#write-a-plugintheme) | 28 | - [Write a plugin/theme](#write-a-plugintheme) |
@@ -470,6 +471,15 @@ peertubeHelpers.getSettings() | |||
470 | }) | 471 | }) |
471 | ``` | 472 | ``` |
472 | 473 | ||
474 | #### Get server config | ||
475 | |||
476 | ```js | ||
477 | peertubeHelpers.getServerConfig() | ||
478 | .then(config => { | ||
479 | console.log('Fetched server config.', config) | ||
480 | }) | ||
481 | ``` | ||
482 | |||
473 | #### Add custom fields to video form | 483 | #### Add custom fields to video form |
474 | 484 | ||
475 | To add custom fields in the video form (in *Plugin settings* tab): | 485 | To add custom fields in the video form (in *Plugin settings* tab): |