aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/custom-pages
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 10:55:16 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commita1637fa1e25b60a88f7cfe50aac8953f50d55761 (patch)
tree4d0cc82eef618619a7bcb747812cc7b21e0d8776 /shared/extra-utils/custom-pages
parent04aed76711909507e74905bde3a7fa024d3585c9 (diff)
downloadPeerTube-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/custom-pages')
-rw-r--r--shared/extra-utils/custom-pages/custom-pages-command.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/extra-utils/custom-pages/custom-pages-command.ts b/shared/extra-utils/custom-pages/custom-pages-command.ts
index a062c9774..0dd77503e 100644
--- a/shared/extra-utils/custom-pages/custom-pages-command.ts
+++ b/shared/extra-utils/custom-pages/custom-pages-command.ts
@@ -9,7 +9,9 @@ export class CustomPagesCommand extends AbstractCommand {
9 9
10 return this.getRequestBody<CustomPage>({ 10 return this.getRequestBody<CustomPage>({
11 ...options, 11 ...options,
12
12 path, 13 path,
14 implicitToken: false,
13 defaultExpectedStatus: HttpStatusCode.OK_200 15 defaultExpectedStatus: HttpStatusCode.OK_200
14 }) 16 })
15 } 17 }
@@ -22,8 +24,10 @@ export class CustomPagesCommand extends AbstractCommand {
22 24
23 return this.putBodyRequest({ 25 return this.putBodyRequest({
24 ...options, 26 ...options,
27
25 path, 28 path,
26 fields: { content }, 29 fields: { content },
30 implicitToken: true,
27 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 31 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
28 }) 32 })
29 } 33 }