diff --git a/app.js b/app.js index 180004f..7a0b111 100644 --- a/app.js +++ b/app.js @@ -88,7 +88,7 @@ router.get('/', async (ctx, next) => { if (host === 'notes') { return await next() } - const url = `${gitea.apiBase}/repos/${gitea.user}/${gitea.repo}/contents/${encodeURIComponent(host)}.txt` + const url = `${gitea.apiBase}/repos/${gitea.user}/${gitea.repo}/contents/${encodeURIComponent(host)}.md` const resp = await fetch(url, { headers: { Accept: 'application/json',