Implement ping component
This commit is contained in:
1 parent
8b540c2a97
commit
722355ca57
7 files changed
+127
-1
No files matched your search
@@ -137,4 +137,8 @@ router.post("/devices/:id/tags", async (ctx, next) => {
|
||||
ctx.body = "";
|
||||
});
|
||||
|
||||
router.get("/ping/:host", async ctx => {
|
||||
ctx.body = await apiFunctions.ping(ctx.params.host);
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in new issue
Block a user