1
0
Fork 0
peertube/shared/server-commands/videos/storyboard-command.ts
2023-06-29 10:16:55 +02:00

19 lines
514 B
TypeScript

import { HttpStatusCode, Storyboard } from '@shared/models'
import { AbstractCommand, OverrideCommandOptions } from '../shared'
export class StoryboardCommand extends AbstractCommand {
list (options: OverrideCommandOptions & {
id: number | string
}) {
const path = '/api/v1/videos/' + options.id + '/storyboards'
return this.getRequestBody<{ storyboards: Storyboard[] }>({
...options,
path,
implicitToken: true,
defaultExpectedStatus: HttpStatusCode.OK_200
})
}
}