Rename large_upload endpoint path

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2025-07-29 20:12:39 +08:00
parent f90633bce3
commit c18f08a4cb
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
6 changed files with 17 additions and 13 deletions

View file

@ -271,7 +271,7 @@ $(function () {
try {
// Retrieve presigned URL for upload large paste
const res = await fetch(`${ENDPOINT}/v2/large_upload/create`, {
const res = await fetch(`${ENDPOINT}/api/large_upload/create`, {
method: 'POST',
body: filtered,
});
@ -294,7 +294,7 @@ $(function () {
throw new Error(`Unable to upload paste: ${(await res1.text()) || `${res1.status} ${res1.statusText}`}`);
}
// Finialize the paste
const res2 = await fetch(`${ENDPOINT}/v2/large_upload/complete/${create_result.uuid}`, {
const res2 = await fetch(`${ENDPOINT}/api/large_upload/complete/${create_result.uuid}`, {
method: 'POST',
});
if (res2.ok) {