Skip to content

Commit

Permalink
moved source file, changed path
Browse files Browse the repository at this point in the history
  • Loading branch information
argl committed Dec 17, 2024
1 parent dba4b64 commit d3ad9a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import analyzeApiV2 from "./v2/analyze/index.js";
import scanApiV2 from "./v2/scan/index.js";
import statsApiV2 from "./v2/stats/index.js";
import recommendationMatrixApiV2 from "./v2/recommendations/index.js";
import version from "./v2/version/index.js";
import version from "./version/index.js";
import globalErrorHandler from "./global-error-handler.js";
import pool from "@fastify/postgres";
import { poolOptions } from "../database/repository.js";
Expand Down
6 changes: 3 additions & 3 deletions src/api/v2/version/index.js → src/api/version/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { version } from "tough-cookie";
import { SCHEMAS } from "../schemas.js";
import { SCHEMAS } from "../v2/schemas.js";
import fs from "node:fs";
import path from "path";
import { fileURLToPath } from "url";
Expand All @@ -24,10 +24,10 @@ export default async function (fastify) {
const pool = fastify.pg.pool;

fastify.get(
"/__version__",
"/_version",
{ schema: SCHEMAS.version },
async (request, reply) => {
/** @type {import("../../../types.js").VersionResponse} */
/** @type {import("../../types.js").VersionResponse} */
const ret = {
version: packageJson.version,
commit: process.env.GIT_SHA || "unknown",
Expand Down

0 comments on commit d3ad9a1

Please sign in to comment.