diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-20 15:32:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-20 15:42:27 +0200 |
commit | b3af2601da92a6c0835cb2473b4c7a41a0d86e98 (patch) | |
tree | a20984ec2df1c22f235d03909177629892721c54 /server/typings/plugins | |
parent | 8c7725dc3c01a73bf56a48c8b192d144bfdc3ffe (diff) | |
download | PeerTube-b3af2601da92a6c0835cb2473b4c7a41a0d86e98.tar.gz PeerTube-b3af2601da92a6c0835cb2473b4c7a41a0d86e98.tar.zst PeerTube-b3af2601da92a6c0835cb2473b4c7a41a0d86e98.zip |
Add ability to remove privacies using plugins
Diffstat (limited to 'server/typings/plugins')
-rw-r--r-- | server/typings/plugins/register-server-option.model.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/typings/plugins/register-server-option.model.ts b/server/typings/plugins/register-server-option.model.ts index 3d6217d1b..813e93003 100644 --- a/server/typings/plugins/register-server-option.model.ts +++ b/server/typings/plugins/register-server-option.model.ts | |||
@@ -7,6 +7,8 @@ import { PluginVideoLanguageManager } from '../../../shared/models/plugins/plugi | |||
7 | import { PluginVideoLicenceManager } from '../../../shared/models/plugins/plugin-video-licence-manager.model' | 7 | import { PluginVideoLicenceManager } from '../../../shared/models/plugins/plugin-video-licence-manager.model' |
8 | import { Logger } from 'winston' | 8 | import { Logger } from 'winston' |
9 | import { Router } from 'express' | 9 | import { Router } from 'express' |
10 | import { PluginVideoPrivacyManager } from '@shared/models/plugins/plugin-video-privacy-manager.model' | ||
11 | import { PluginPlaylistPrivacyManager } from '@shared/models/plugins/plugin-playlist-privacy-manager.model' | ||
10 | 12 | ||
11 | export type PeerTubeHelpers = { | 13 | export type PeerTubeHelpers = { |
12 | logger: Logger | 14 | logger: Logger |
@@ -33,6 +35,9 @@ export type RegisterServerOptions = { | |||
33 | videoLanguageManager: PluginVideoLanguageManager | 35 | videoLanguageManager: PluginVideoLanguageManager |
34 | videoLicenceManager: PluginVideoLicenceManager | 36 | videoLicenceManager: PluginVideoLicenceManager |
35 | 37 | ||
38 | videoPrivacyManager: PluginVideoPrivacyManager | ||
39 | playlistPrivacyManager: PluginPlaylistPrivacyManager | ||
40 | |||
36 | // Get plugin router to create custom routes | 41 | // Get plugin router to create custom routes |
37 | // Base routes of this router are | 42 | // Base routes of this router are |
38 | // * /plugins/:pluginName/:pluginVersion/router/... | 43 | // * /plugins/:pluginName/:pluginVersion/router/... |