diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 10:55:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | a1637fa1e25b60a88f7cfe50aac8953f50d55761 (patch) | |
tree | 4d0cc82eef618619a7bcb747812cc7b21e0d8776 /shared/extra-utils/server/plugins-command.ts | |
parent | 04aed76711909507e74905bde3a7fa024d3585c9 (diff) | |
download | PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.gz PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.zst PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.zip |
Specify if we want to fallback to the server token
Diffstat (limited to 'shared/extra-utils/server/plugins-command.ts')
-rw-r--r-- | shared/extra-utils/server/plugins-command.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/extra-utils/server/plugins-command.ts b/shared/extra-utils/server/plugins-command.ts index f06e58a22..ff49d58c4 100644 --- a/shared/extra-utils/server/plugins-command.ts +++ b/shared/extra-utils/server/plugins-command.ts | |||
@@ -45,6 +45,7 @@ export class PluginsCommand extends AbstractCommand { | |||
45 | pluginType, | 45 | pluginType, |
46 | uninstalled | 46 | uninstalled |
47 | }, | 47 | }, |
48 | implicitToken: true, | ||
48 | defaultExpectedStatus: HttpStatusCode.OK_200 | 49 | defaultExpectedStatus: HttpStatusCode.OK_200 |
49 | }) | 50 | }) |
50 | } | 51 | } |
@@ -75,6 +76,7 @@ export class PluginsCommand extends AbstractCommand { | |||
75 | 76 | ||
76 | path, | 77 | path, |
77 | query, | 78 | query, |
79 | implicitToken: true, | ||
78 | defaultExpectedStatus: HttpStatusCode.OK_200 | 80 | defaultExpectedStatus: HttpStatusCode.OK_200 |
79 | }) | 81 | }) |
80 | } | 82 | } |
@@ -88,6 +90,7 @@ export class PluginsCommand extends AbstractCommand { | |||
88 | ...options, | 90 | ...options, |
89 | 91 | ||
90 | path, | 92 | path, |
93 | implicitToken: true, | ||
91 | defaultExpectedStatus: HttpStatusCode.OK_200 | 94 | defaultExpectedStatus: HttpStatusCode.OK_200 |
92 | }) | 95 | }) |
93 | } | 96 | } |
@@ -104,6 +107,7 @@ export class PluginsCommand extends AbstractCommand { | |||
104 | 107 | ||
105 | path, | 108 | path, |
106 | fields: { settings }, | 109 | fields: { settings }, |
110 | implicitToken: true, | ||
107 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | 111 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 |
108 | }) | 112 | }) |
109 | } | 113 | } |
@@ -117,6 +121,7 @@ export class PluginsCommand extends AbstractCommand { | |||
117 | ...options, | 121 | ...options, |
118 | 122 | ||
119 | path, | 123 | path, |
124 | implicitToken: true, | ||
120 | defaultExpectedStatus: HttpStatusCode.OK_200 | 125 | defaultExpectedStatus: HttpStatusCode.OK_200 |
121 | }) | 126 | }) |
122 | } | 127 | } |
@@ -131,6 +136,7 @@ export class PluginsCommand extends AbstractCommand { | |||
131 | ...options, | 136 | ...options, |
132 | 137 | ||
133 | path, | 138 | path, |
139 | implicitToken: false, | ||
134 | defaultExpectedStatus: HttpStatusCode.OK_200 | 140 | defaultExpectedStatus: HttpStatusCode.OK_200 |
135 | }) | 141 | }) |
136 | } | 142 | } |
@@ -145,6 +151,7 @@ export class PluginsCommand extends AbstractCommand { | |||
145 | ...options, | 151 | ...options, |
146 | 152 | ||
147 | path, | 153 | path, |
154 | implicitToken: false, | ||
148 | defaultExpectedStatus: HttpStatusCode.OK_200 | 155 | defaultExpectedStatus: HttpStatusCode.OK_200 |
149 | }) | 156 | }) |
150 | } | 157 | } |
@@ -161,6 +168,7 @@ export class PluginsCommand extends AbstractCommand { | |||
161 | 168 | ||
162 | path: apiPath, | 169 | path: apiPath, |
163 | fields: { npmName, path }, | 170 | fields: { npmName, path }, |
171 | implicitToken: true, | ||
164 | defaultExpectedStatus: HttpStatusCode.OK_200 | 172 | defaultExpectedStatus: HttpStatusCode.OK_200 |
165 | }) | 173 | }) |
166 | } | 174 | } |
@@ -177,6 +185,7 @@ export class PluginsCommand extends AbstractCommand { | |||
177 | 185 | ||
178 | path: apiPath, | 186 | path: apiPath, |
179 | fields: { npmName, path }, | 187 | fields: { npmName, path }, |
188 | implicitToken: true, | ||
180 | defaultExpectedStatus: HttpStatusCode.OK_200 | 189 | defaultExpectedStatus: HttpStatusCode.OK_200 |
181 | }) | 190 | }) |
182 | } | 191 | } |
@@ -192,6 +201,7 @@ export class PluginsCommand extends AbstractCommand { | |||
192 | 201 | ||
193 | path: apiPath, | 202 | path: apiPath, |
194 | fields: { npmName }, | 203 | fields: { npmName }, |
204 | implicitToken: true, | ||
195 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | 205 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 |
196 | }) | 206 | }) |
197 | } | 207 | } |
@@ -203,6 +213,7 @@ export class PluginsCommand extends AbstractCommand { | |||
203 | ...options, | 213 | ...options, |
204 | 214 | ||
205 | path, | 215 | path, |
216 | implicitToken: false, | ||
206 | defaultExpectedStatus: HttpStatusCode.OK_200 | 217 | defaultExpectedStatus: HttpStatusCode.OK_200 |
207 | }) | 218 | }) |
208 | } | 219 | } |
@@ -222,6 +233,7 @@ export class PluginsCommand extends AbstractCommand { | |||
222 | 233 | ||
223 | path, | 234 | path, |
224 | query, | 235 | query, |
236 | implicitToken: false, | ||
225 | defaultExpectedStatus: HttpStatusCode.OK_200, | 237 | defaultExpectedStatus: HttpStatusCode.OK_200, |
226 | redirects: 0 | 238 | redirects: 0 |
227 | }) | 239 | }) |