feat: add minimal frontend (accounts, trial balance)

This commit is contained in:
admin
2025-12-13 23:27:38 +09:00
commit 446f17f21a
11 changed files with 149 additions and 0 deletions

10
frontend/js/api.js Normal file
View File

@@ -0,0 +1,10 @@
const API_BASE = "http://localhost:18080";
async function apiGet(path) {
const res = await fetch(`${API_BASE}${path}`);
if (!res.ok) {
const text = await res.text();
throw new Error(text || "APIエラー");
}
return res.json();
}