Benjamin Atkin 5 years ago
parent
commit
1d04870091
  1. 2
      app.js

2
app.js

@ -88,7 +88,7 @@ router.get('/', async (ctx, next) => {
if (host === 'notes') { if (host === 'notes') {
return await next() 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, { const resp = await fetch(url, {
headers: { headers: {
Accept: 'application/json', Accept: 'application/json',

Loading…
Cancel
Save