Extract API endpoints for images

This commit is contained in:
Cohee
2024-03-20 00:59:06 +02:00
parent 7dcd39c806
commit b261c8c4a9
4 changed files with 104 additions and 89 deletions

View File

@ -996,7 +996,7 @@ export async function saveBase64AsFile(base64Data, characterName, filename = '',
};
// Send the data URL to your backend using fetch
const response = await fetch('/uploadimage', {
const response = await fetch('/api/images/upload', {
method: 'POST',
body: JSON.stringify(requestBody),
headers: {