Repository Public MIT
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : VQuant8 * File : server/next/index.ts9 * Module : server10 * Repository : https://git.spboucher.ai/vquant11 * Project Website : https://vquant.spboucher.ai12 * Created : 2026-11-2013 * Last Modified : 2026-11-2014 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: contact@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * SPDX Identifier : MIT34 * License : MIT License35 * License File : LICENSE36 *37 * Do not embed credentials, private keys, access tokens,38 * certificates or confidential personal information.39 *40 * =============================================================================41 * END OF SP BOUCHER SOURCE HEADER42 * =============================================================================43 */4445/**46 * VQuant Next — registration of the /api/v2 surface (contract: docs/next/CONTRACT.md).47 * Called from server/routes.ts after the access gate, so every handler can rely on currentUser(req).48 */49import type { Express } from "express";50import { runMigrations } from "./migrations";51import { registerObjectRoutes } from "./objects";52import { registerSyncRoutes } from "./sync";53import { registerProjectRoutes } from "./projects";54import { registerSearchRoutes } from "./search";55import { registerAuditRoutes } from "./audit";56import { registerMemoryRoutes } from "./memory";57import { registerModelRoutes } from "./providers";58import { registerUsageRoutes } from "./usage";59import { registerTraceRoutes } from "./trace";60import { registerReviewRoutes } from "./review";61import { registerDataRoutes } from "./dataLayer";62import { registerMarketRoutes } from "./market";63import { registerStatementRoutes } from "./statements";64import { registerHealthRoutes } from "./health";6566export function registerNextRoutes(app: Express): void {67 runMigrations();68 registerObjectRoutes(app);69 registerSyncRoutes(app);70 registerProjectRoutes(app);71 registerSearchRoutes(app);72 registerAuditRoutes(app);73 registerMemoryRoutes(app);74 registerModelRoutes(app);75 registerUsageRoutes(app);76 registerTraceRoutes(app);77 registerReviewRoutes(app);78 registerDataRoutes(app);79 registerMarketRoutes(app);80 registerStatementRoutes(app);81 registerHealthRoutes(app);82}83