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:
parent
04aed76711
commit
a1637fa1e2
21 changed files with 122 additions and 35 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue