v2→main: интеграция — v2 как основной UI (/), старый UI закомментирован
This commit is contained in:
@@ -137,9 +137,10 @@ async function start() {
|
||||
// Монтируется ПОСЛЕ /api/v1/ — не перехватывает API-запросы.
|
||||
// ── V2 — тестовый роутер (Keycloak → IAM → вывод) ─────────────────
|
||||
const { createV2Router } = require('./v2/server');
|
||||
app.use('/v2', createV2Router());
|
||||
app.use('/', createV2Router());
|
||||
// Хранит Bearer token в сессии, рендерит те же views/*.ejs.
|
||||
app.use('/', createUiRouter({ auth, MOCK_USERS, authLimiter }));
|
||||
// ── Старый UI (заменён на v2) ────────────────────────────────────────
|
||||
// app.use('/', createUiRouter({ auth, MOCK_USERS, authLimiter }));
|
||||
|
||||
// ── Общий обработчик ошибок ───────────────────────────────────────────────
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
|
||||
Reference in New Issue
Block a user