1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Specify if we want to fallback to the server token

This commit is contained in:
Chocobozzz 2021-07-08 10:55:16 +02:00
parent 04aed76711
commit a1637fa1e2
No known key found for this signature in database
GPG key ID: 583A612D890159BE
21 changed files with 122 additions and 35 deletions

View file

@ -9,7 +9,9 @@ export class CustomPagesCommand extends AbstractCommand {
return this.getRequestBody<CustomPage>({
...options,
path,
implicitToken: false,
defaultExpectedStatus: HttpStatusCode.OK_200
})
}
@ -22,8 +24,10 @@ export class CustomPagesCommand extends AbstractCommand {
return this.putBodyRequest({
...options,
path,
fields: { content },
implicitToken: true,
defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
})
}