23 lines
390 B
JavaScript
23 lines
390 B
JavaScript
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,
|
||
})
|
||
} |