slate/pages/api/data/get.js

19 lines
450 B
JavaScript
Raw Normal View History

2020-07-22 12:37:40 +03:00
import * as MW from "~/node_common/middleware";
import * as Constants from "~/node_common/constants";
import * as Data from "~/node_common/data";
import * as Utilities from "~/node_common/utilities";
import FS from "fs-extra";
const initCORS = MW.init(MW.CORS);
export default async (req, res) => {
initCORS(req, res);
const { buckets } = await Utilities.getBucketAPI();
return res.status(200).send({
decorator: "SERVER_GET",
});
};