// File: route.ts // Path: apps/web/app/api/v1/methodology/route.ts // Project: AI Risk Index — airiskindex.io // Author: Simon-Pierre Boucher // Contact: contact@spboucher.ai // Copyright © 2026 Simon-Pierre Boucher. All rights reserved. // // Description: Public API: machine-readable weights and version metadata. import { DIMENSIONS, EXPOSURE_DIMENSIONS, HIGH_EXPOSURE_THRESHOLD, INDEX_VERSION, INVERTED_DIMENSIONS, WEIGHTS, } from "@airiskindex/scoring"; export function GET(): Response { return Response.json( { index_version: INDEX_VERSION, dimensions: DIMENSIONS, weights: WEIGHTS, inverted_dimensions: [...INVERTED_DIMENSIONS], exposure_dimensions: EXPOSURE_DIMENSIONS, high_exposure_threshold: HIGH_EXPOSURE_THRESHOLD, scales: { ratings: "1-5 per task and dimension, multi-model LLM panel with expert overrides", scores: "0-100, each with low/score/high confidence bounds", }, documentation: "https://www.airiskindex.io/methodology", }, { headers: { "Cache-Control": "public, max-age=3600" } }, ); }