slate/pages/api/_.js

12 lines
268 B
JavaScript
Raw Normal View History

2020-08-19 21:17:12 +03:00
import "isomorphic-fetch";
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);
2020-08-19 21:17:12 +03:00
return res.status(200).json({ decorator: "SERVER_HEALTH_CHECK", data: { slate: true } });
};