|
|
|
@ -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', |
|
|
|
|