slate/pages/api/_.js
2020-08-10 22:15:39 -07:00

12 lines
248 B
JavaScript

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