debut refacto

This commit is contained in:
Tom Boullay
2026-04-14 14:18:40 +02:00
parent ab9685b6ee
commit e9ae6ffc41
13 changed files with 721 additions and 554 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ async function checkFolderDiffs(
): Promise<CheckResult> {
try {
const params = new URLSearchParams({ folderName: folder.folderName, destination })
const res = await fetch(`/api/upload?${params}`, {
const res = await fetch(`/api/upload/check?${params}`, {
headers: { 'x-upload-secret': secret.trim() },
})
const data = await res.json()
@@ -195,7 +195,7 @@ async function uploadFolder(
onProgress(10)
try {
const res = await fetch('/api/upload', {
const res = await fetch('/api/upload/git', {
method: 'POST',
headers: { 'x-upload-secret': secret.trim() },
body: formData,