import {http} from "../utils/http.js"
export const getVideosList= () => {	
	return http({
		url:"/api/videos/list",
		method:"GET"
	})
}
export const getVideosInfo= (id) => {	
	return http({
		url:"/api/videos/"+id,
		method:"GET"
	})
}
/**
 * data:title,videoUrl,description
 */
export const saveVideosInfo=(data)=>{
	return http({
		url:'/api/videos',
		method:'POST',
		data,
	})
}