"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRootPage = isRootPage;
const constants_1 = require("../../shared/constants");
const ServerFactory_1 = __importDefault(require("../ServerFactory"));
function isRootPage(req, page) {
    const rootPages = [
        ...(req.ctx.config?.odinBaseUrl ? [constants_1.ODIN_PAGE_ID] : []),
        ...ServerFactory_1.default.getExtraRootPages(),
    ];
    return -1 !== rootPages.indexOf(page);
}
