ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
570 B

  1. import { HttpStatusCode, VideosOverview } from '@peertube/peertube-models'
  2. import { AbstractCommand, OverrideCommandOptions } from '../shared/index.js'
  3. export class OverviewsCommand extends AbstractCommand {
  4. getVideos (options: OverrideCommandOptions & {
  5. page: number
  6. }) {
  7. const { page } = options
  8. const path = '/api/v1/overviews/videos'
  9. const query = { page }
  10. return this.getRequestBody<VideosOverview>({
  11. ...options,
  12. path,
  13. query,
  14. implicitToken: false,
  15. defaultExpectedStatus: HttpStatusCode.OK_200
  16. })
  17. }
  18. }