18 lines
379 B
JavaScript
18 lines
379 B
JavaScript
"use strict";
|
|
const utils_http = require("../utils/http.js");
|
|
const getVideosList = () => {
|
|
return utils_http.http({
|
|
url: "/api/videos/list",
|
|
method: "GET"
|
|
});
|
|
};
|
|
const saveVideosInfo = (data) => {
|
|
return utils_http.http({
|
|
url: "/api/videos",
|
|
method: "POST",
|
|
data
|
|
});
|
|
};
|
|
exports.getVideosList = getVideosList;
|
|
exports.saveVideosInfo = saveVideosInfo;
|