From 5a7eecdd56120bc29b47ab071c8b8cd16efa3843 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 30 Apr 2020 08:46:40 +0200 Subject: Add config helper for plugins --- server/typings/plugins/register-server-option.model.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/typings') diff --git a/server/typings/plugins/register-server-option.model.ts b/server/typings/plugins/register-server-option.model.ts index bcabf2fec..c1e63316d 100644 --- a/server/typings/plugins/register-server-option.model.ts +++ b/server/typings/plugins/register-server-option.model.ts @@ -25,6 +25,10 @@ export type PeerTubeHelpers = { videos: { removeVideo: (videoId: number) => Promise } + + config: { + getWebserverUrl: () => string + } } export type RegisterServerOptions = { -- cgit v1.2.3