diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-10 16:59:53 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | ad91e7006e41f8ee5b8dcefee30f99e8ca44133a (patch) | |
tree | d860f20e05b036fa1a96e049c74deffd7f5d2b00 /server/typings | |
parent | ffb321bedca46d6987c7b31dd58e5dea96ea2ea2 (diff) | |
download | PeerTube-ad91e7006e41f8ee5b8dcefee30f99e8ca44133a.tar.gz PeerTube-ad91e7006e41f8ee5b8dcefee30f99e8ca44133a.tar.zst PeerTube-ad91e7006e41f8ee5b8dcefee30f99e8ca44133a.zip |
WIP plugins: plugin settings on server side
Diffstat (limited to 'server/typings')
-rw-r--r-- | server/typings/express.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/typings/express.ts b/server/typings/express.ts index aec10b606..3bffc1e9a 100644 --- a/server/typings/express.ts +++ b/server/typings/express.ts | |||
@@ -21,10 +21,10 @@ import { VideoBlacklistModel } from '../models/video/video-blacklist' | |||
21 | import { VideoCaptionModel } from '../models/video/video-caption' | 21 | import { VideoCaptionModel } from '../models/video/video-caption' |
22 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' | 22 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' |
23 | import { RegisteredPlugin } from '../lib/plugins/plugin-manager' | 23 | import { RegisteredPlugin } from '../lib/plugins/plugin-manager' |
24 | import { PluginModel } from '../models/server/plugin' | ||
24 | 25 | ||
25 | declare module 'express' { | 26 | declare module 'express' { |
26 | 27 | ||
27 | |||
28 | interface Response { | 28 | interface Response { |
29 | locals: { | 29 | locals: { |
30 | video?: VideoModel | 30 | video?: VideoModel |
@@ -81,6 +81,8 @@ declare module 'express' { | |||
81 | authenticated?: boolean | 81 | authenticated?: boolean |
82 | 82 | ||
83 | registeredPlugin?: RegisteredPlugin | 83 | registeredPlugin?: RegisteredPlugin |
84 | |||
85 | plugin?: PluginModel | ||
84 | } | 86 | } |
85 | } | 87 | } |
86 | } | 88 | } |