feat: Introduce core backend application with authentication API and a new popout HTML page.

This commit is contained in:
2026-03-24 09:51:38 -04:00
parent 5e300f9ada
commit 46e054f5dd
3 changed files with 30 additions and 4 deletions
+3 -1
View File
@@ -109,7 +109,9 @@
document.getElementById('file-title').textContent = path.split('/').pop();
try {
const response = await fetch(`/api/file/${encodeURIComponent(vault)}?path=${encodeURIComponent(path)}`);
const response = await fetch(`/api/file/${encodeURIComponent(vault)}?path=${encodeURIComponent(path)}`, {
credentials: 'include'
});
if (!response.ok) throw new Error("Erreur lors du chargement du fichier");
const data = await response.json();