Redirect HAL root to operator console
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user