feat(host): /api/host CPU/mem/disk/net from /proc
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
5
lib/api/routes/host.js
Normal file
5
lib/api/routes/host.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Router } from 'express';
|
||||
import { asyncWrap } from '../errors.js';
|
||||
import { snapshot } from '../../host/resources.js';
|
||||
export const router = Router();
|
||||
router.get('/', asyncWrap(async (_req, res) => res.json(await snapshot())));
|
||||
Reference in New Issue
Block a user