From 6e945ef19a94d23111e55a6846035717a6024b32 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Sat, 3 Aug 2024 11:56:08 +0000 Subject: [PATCH] fix(api): adjust `/single-page` for new directory --- api/routes/single-page.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/api/routes/single-page.ts b/api/routes/single-page.ts index 992609d6d..6355bd31d 100644 --- a/api/routes/single-page.ts +++ b/api/routes/single-page.ts @@ -1,7 +1,13 @@ import { fetcher } from 'itty-fetcher' -const GITHUB_REPO = 'https://api.github.com/repos/fmhy/FMHYEdit/contents/' -const EXCLUDE_FILES = ['README.md', 'index.md', 'feedback.md', 'posts.md'] +// Look inside tbe docs directory +const GITHUB_REPO = 'https://api.github.com/repos/fmhy/FMHYEdit/contents/docs/' +const EXCLUDE_FILES = [ + 'README.md', + 'docs/index.md', + 'docs/feedback.md', + 'docs/posts.md' +] const EXCLUDE_DIRECTORIES = ['posts/'] interface File {