slate/pages/api/_.js

12 lines
248 B
JavaScript
Raw Normal View History

import * as MW from "~/node_common/middleware";
const initCORS = MW.init(MW.CORS);
2020-08-11 08:15:39 +03:00
export default async (req, res) => {
initCORS(req, res);
return res
.status(200)
.json({ decorator: "SERVER_HEALTH_CHECK", data: req.body.data });
};