Commit 3e2d719d47

3e2d719d476fc5c4d29b23f0f7eeddf56a5404f8

parent: 6f06061c00

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-03-08 17:48 UTC

Update Hono API

Layout: unified · split

api/public/index.html +1 −2
@@ -21,8 +21,7 @@
21 ], 21 ],
22 plugins: [ 22 plugins: [
23 SwaggerUIBundle.plugins.DownloadUrl 23 SwaggerUIBundle.plugins.DownloadUrl
24 ], 24 ]
25 layout: "StandaloneLayout"
26 }); 25 });
27 } 26 }
28 </script> 27 </script>
api/src/utils.ts +1 −1
@@ -25,7 +25,7 @@ export const findBySlug = <T extends { name: string }>(collection: T[], slug: st
25 25
26 26
27export const renderRemoteIndex = async (ctx) => { 27export const renderRemoteIndex = async (ctx) => {
28 const indexHtmlUrl = 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/api/index.html'; 28 const indexHtmlUrl = 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/api/public/index.html';
29 const response = await fetch(indexHtmlUrl); 29 const response = await fetch(indexHtmlUrl);
30 if (response.ok) { 30 if (response.ok) {
31 const htmlContent = await response.text(); 31 const htmlContent = await response.text();