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:
root
2026-06-02 22:34:04 +10:00
parent 03803f39f0
commit 3492b24dac
4 changed files with 71 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ import { router as captureRouter } from './routes/capture.js';
import { spacesScopedRouter as companionRouter } from './routes/companion.js';
import { router as dashboardRouter } from './routes/dashboard.js';
import { router as weatherRouter } from './routes/weather.js';
import { router as hostRouter } from './routes/host.js';
export function mountApi(app) {
const api = Router();
@@ -57,6 +58,7 @@ export function mountApi(app) {
api.use('/capture', captureRouter);
api.use('/dashboard', dashboardRouter);
api.use('/weather', weatherRouter);
api.use('/host', hostRouter);
api.use('/:entity_type/:entity_id/tags', tagsByEntityRouter);
api.use((_req, _res, next) => next(new NotFoundError('route not found')));