From 68d4bcfed3e893b18b14ebaa67884dc17a78cb3d Mon Sep 17 00:00:00 2001 From: Will Kelly Date: Mon, 5 Aug 2024 11:26:23 -0500 Subject: [PATCH] fix bug on downloading source usfm --- src/lib/routes.ts | 3 --- src/pages/api/getUsfmSrcDownload.ts | 2 +- stats.html | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/routes.ts b/src/lib/routes.ts index 6f88b2a..fad2bba 100644 --- a/src/lib/routes.ts +++ b/src/lib/routes.ts @@ -45,9 +45,6 @@ const FUNCTIONS_ROUTES = { return `${supplyBaseLocation()}/repoIndex?user=${user}&repo=${repo}`; }, getRepoHtml: ({ user, repo, book, chapter }: getRepoHtmlType) => { - // todo: try to migrate just this one route - // - // base = "http://localhost:4321/api"; return `${supplyBaseLocation()}/getHtmlForChap?user=${user}&repo=${repo}&book=${book}&chapter=${chapter}`; }, getHtmlForTw: ({ user, repo, navSection }: getNonBibleRepoHtmlType) => { diff --git a/src/pages/api/getUsfmSrcDownload.ts b/src/pages/api/getUsfmSrcDownload.ts index f5f9c01..9b86657 100644 --- a/src/pages/api/getUsfmSrcDownload.ts +++ b/src/pages/api/getUsfmSrcDownload.ts @@ -3,7 +3,7 @@ import { bibleBookSortOrder } from "@lib/contants"; import type { IcfEnv } from "@customTypes/types"; import type { APIRoute } from "astro"; -export const GET: APIRoute = async (context) => { +export const POST: APIRoute = async (context) => { const runtime = context.locals.runtime; const env = runtime.env as IcfEnv; const { url } = context; diff --git a/stats.html b/stats.html index 1c85fde..b4978e4 100644 --- a/stats.html +++ b/stats.html @@ -4822,7 +4822,7 @@