mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
16 lines
553 B
TypeScript
16 lines
553 B
TypeScript
import { videoPresentationList } from "@/contracts/types/video-presentations.types";
|
|
import { baseApiService } from "./base-api.service";
|
|
|
|
const BASE = "/api/v1/video-presentations";
|
|
|
|
class VideoPresentationsApiService {
|
|
list = async (searchSpaceId: number, limit = 200) => {
|
|
const qs = new URLSearchParams({
|
|
search_space_id: String(searchSpaceId),
|
|
limit: String(limit),
|
|
}).toString();
|
|
return baseApiService.get(`${BASE}?${qs}`, videoPresentationList);
|
|
};
|
|
}
|
|
|
|
export const videoPresentationsApiService = new VideoPresentationsApiService();
|