"use server" import { Video, VideoAPIRequest, GenericAPIResponse, VideoStatusRequest, VideoStatus } from "@/app/types" import { GET, POST, DELETE, PATCH } from "./base" // note: for security purposes we do not directly expose the VideoChain API: // all calls are protected with a token, that way it the VideooChain API can stay // lightweight, security and quotas are handled outside // this should be used by the admin only export const getAllVideos = async () => { const tasks = await GET("", []) return tasks } // return all tasks of a owner export const getVideos = async (ownerId: string) => { const tasks = await GET(ownerId, []) return tasks } export const getVideo = async (ownerId: string, videoId: string) => { const task = await GET