Redirect HAL root to operator console

This commit is contained in:
oz
2026-10-27 04:42:45 +00:00
parent 83e3604b24
commit ac072e6f12
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -36,6 +36,8 @@ export function buildApp(d) {
const uiDir = join(ROOT, 'hal', 'ui', 'public'); if (existsSync(uiDir)) app.static('/ops/ui', uiDir);
// ---------------- 공개
/** 기본 주소는 운영자가 실제로 사용하는 콘솔 경로로 안내한다. 접근 통제는 이동 후 /ops 미들웨어가 동일하게 적용한다. */
app.get('/', (ctx) => ctx.redirect('/ops/'));
app.get('/api/health', () => core.selfHealth(d));
app.get('/api/status', () => publicStatus(d));
app.get('/status', (ctx) => ctx.html(statusPage(d)));