feat: Introduce core backend application with authentication API and a new popout HTML page.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user