mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-25 10:05:02 +03:00
14 lines
284 B
JavaScript
14 lines
284 B
JavaScript
|
import * as MW from "~/node_common/middleware";
|
||
|
|
||
|
import DB from "~/node_common/database";
|
||
|
|
||
|
const initCORS = MW.init(MW.CORS);
|
||
|
|
||
|
export default (req, res) => {
|
||
|
initCORS(req, res);
|
||
|
|
||
|
return res
|
||
|
.status(200)
|
||
|
.json({ decorator: "SERVER_HEALTH_CHECK", data: req.body.data });
|
||
|
};
|