addition of archive server listing

This commit is contained in:
2026-08-26 11:22:52 +00:00
parent bf59249ed7
commit a239a76cc7
4 changed files with 67 additions and 2 deletions

View File

@@ -4,8 +4,9 @@ import { loadPep } from "../modules/pep/index.js";
import swaggerUi from "swagger-ui-express";
import swaggerDocument from "./api/v1/swagger.json" with { type: "json" };
import { getConfig } from "../common/config.js";
import { core } from "../modules/core/index.js"
import { getAgreements } from "../http/agreements.js"
import { core } from "../modules/core/index.js";
import { getAgreements } from "../http/agreements.js";
import { getArchiveServers } from "../common/archive.js";
import express from "express";
import session from "express-session";
@@ -66,6 +67,7 @@ async function renderPrivateUI(req, res, config) {
export async function initHTTP(app) {
const config = getConfig();
const archiveServers = await getArchiveServers(config);
passport.serializeUser(function (user, done) {
done(null, user);