fix(changelog): correct API endpoint path from /githubapi/ to /github/

The IndieKit endpoint-github is mounted at /github, not /githubapi.
The wrong path returned a login page instead of JSON, leaving the
changelog empty for readers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-19 00:27:27 +01:00
parent b0b32d1058
commit a85a67c0d0

View File

@@ -155,7 +155,7 @@ function changelogApp() {
async fetchChangelog(days) {
try {
const response = await fetch('/githubapi/api/changelog?days=' + days);
const response = await fetch('/github/api/changelog?days=' + days);
if (!response.ok) throw new Error('Failed to fetch');
const data = await response.json();
this.commits = data.commits || [];