Skip to content

Commit

Permalink
fix bug on downloading source usfm
Browse files Browse the repository at this point in the history
  • Loading branch information
wkelly17 committed Aug 5, 2024
1 parent 00c7fa2 commit 68d4bcf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/lib/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/getUsfmSrcDownload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion stats.html

Large diffs are not rendered by default.

0 comments on commit 68d4bcf

Please sign in to comment.