From 3e2d719d476fc5c4d29b23f0f7eeddf56a5404f8 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Fri, 8 Mar 2024 17:48:13 +0000 Subject: [PATCH] Update Hono API --- api/public/index.html | 3 +-- api/src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/public/index.html b/api/public/index.html index f058796..6484ada 100644 --- a/api/public/index.html +++ b/api/public/index.html @@ -21,8 +21,7 @@ ], plugins: [ SwaggerUIBundle.plugins.DownloadUrl - ], - layout: "StandaloneLayout" + ] }); } diff --git a/api/src/utils.ts b/api/src/utils.ts index 00e295c..16e3265 100644 --- a/api/src/utils.ts +++ b/api/src/utils.ts @@ -25,7 +25,7 @@ export const findBySlug = (collection: T[], slug: st export const renderRemoteIndex = async (ctx) => { - const indexHtmlUrl = 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/api/index.html'; + const indexHtmlUrl = 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/api/public/index.html'; const response = await fetch(indexHtmlUrl); if (response.ok) { const htmlContent = await response.text();