This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.

12 lines
320 B
JavaScript

const {checkServer} = require("../controller/shell");
const app = require("express").Router();
app.post("/check", (req, res) => {
checkServer(req.body).then((data) => {
res.json(data);
}).catch((err) => {
res.status(400).json({status: "failed", message: err});
});
});
module.exports = app;