aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-22 11:42:51 +0200
committerChocobozzz <me@florianbigard.com>2021-04-22 11:43:03 +0200
commit096231d00e766c5d45e8975f4cec21c41a50ec2e (patch)
tree1db15eb58cbbe44dd3664a494fb5910a0da42fa8 /server
parent9da18f62cb3bfe8564e4c3ac4cb903dbb272214f (diff)
downloadPeerTube-096231d00e766c5d45e8975f4cec21c41a50ec2e.tar.gz
PeerTube-096231d00e766c5d45e8975f4cec21c41a50ec2e.tar.zst
PeerTube-096231d00e766c5d45e8975f4cec21c41a50ec2e.zip
Add auth header in plugins guide
Diffstat (limited to 'server')
-rw-r--r--server/types/plugins/register-server-option.model.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/types/plugins/register-server-option.model.ts b/server/types/plugins/register-server-option.model.ts
index 1b9250ce4..4af476ed2 100644
--- a/server/types/plugins/register-server-option.model.ts
+++ b/server/types/plugins/register-server-option.model.ts
@@ -58,14 +58,18 @@ export type PeerTubeHelpers = {
58 } 58 }
59 59
60 plugin: { 60 plugin: {
61 // PeerTube >= 3.2
61 getBaseStaticRoute: () => string 62 getBaseStaticRoute: () => string
62 63
64 // PeerTube >= 3.2
63 getBaseRouterRoute: () => string 65 getBaseRouterRoute: () => string
64 66
67 // PeerTube >= 3.2
65 getDataDirectoryPath: () => string 68 getDataDirectoryPath: () => string
66 } 69 }
67 70
68 user: { 71 user: {
72 // PeerTube >= 3.2
69 getAuthUser: (response: Response) => { 73 getAuthUser: (response: Response) => {
70 id?: string 74 id?: string
71 username: string 75 username: string