aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'server/typings/plugins')
-rw-r--r--server/typings/plugins/register-server-option.model.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/typings/plugins/register-server-option.model.ts b/server/typings/plugins/register-server-option.model.ts
index 813e93003..0c0993c14 100644
--- a/server/typings/plugins/register-server-option.model.ts
+++ b/server/typings/plugins/register-server-option.model.ts
@@ -9,6 +9,7 @@ import { Logger } from 'winston'
9import { Router } from 'express' 9import { Router } from 'express'
10import { PluginVideoPrivacyManager } from '@shared/models/plugins/plugin-video-privacy-manager.model' 10import { PluginVideoPrivacyManager } from '@shared/models/plugins/plugin-video-privacy-manager.model'
11import { PluginPlaylistPrivacyManager } from '@shared/models/plugins/plugin-playlist-privacy-manager.model' 11import { PluginPlaylistPrivacyManager } from '@shared/models/plugins/plugin-playlist-privacy-manager.model'
12import { RegisterServerAuthPassOptions, RegisterServerAuthExternalOptions, RegisterServerAuthExternalResult } from '@shared/models/plugins/register-server-auth.model'
12 13
13export type PeerTubeHelpers = { 14export type PeerTubeHelpers = {
14 logger: Logger 15 logger: Logger
@@ -38,6 +39,9 @@ export type RegisterServerOptions = {
38 videoPrivacyManager: PluginVideoPrivacyManager 39 videoPrivacyManager: PluginVideoPrivacyManager
39 playlistPrivacyManager: PluginPlaylistPrivacyManager 40 playlistPrivacyManager: PluginPlaylistPrivacyManager
40 41
42 registerIdAndPassAuth: (options: RegisterServerAuthPassOptions) => void
43 registerExternalAuth: (options: RegisterServerAuthExternalOptions) => RegisterServerAuthExternalResult
44
41 // Get plugin router to create custom routes 45 // Get plugin router to create custom routes
42 // Base routes of this router are 46 // Base routes of this router are
43 // * /plugins/:pluginName/:pluginVersion/router/... 47 // * /plugins/:pluginName/:pluginVersion/router/...