mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(web): section-prefix all tool API calls
This commit is contained in:
@@ -226,7 +226,7 @@ export function EraseObjectSettings({
|
||||
stopProgress();
|
||||
reject(new Error("Request timed out"));
|
||||
};
|
||||
xhr.open("POST", "/api/v1/tools/erase-object");
|
||||
xhr.open("POST", "/api/v1/tools/image/erase-object");
|
||||
for (const [key, value] of formatHeaders()) {
|
||||
xhr.setRequestHeader(key, value);
|
||||
}
|
||||
@@ -365,7 +365,7 @@ export function EraseObjectSettings({
|
||||
setError("Request timed out - the server may be overloaded. Try again.");
|
||||
finishUi();
|
||||
};
|
||||
xhr.open("POST", "/api/v1/tools/erase-object");
|
||||
xhr.open("POST", "/api/v1/tools/image/erase-object");
|
||||
formatHeaders().forEach((value, key) => {
|
||||
xhr.setRequestHeader(key, value);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user