1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

fix: sharex url shortening config

V4 API requires destination, not url anymore. This should fix the generated config for url shortening.
This commit is contained in:
Dylan 2025-01-13 16:22:11 -05:00 committed by GitHub
parent 084feadc01
commit a63a2e3bda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ export function sharex(token: string, type: 'file' | 'url', options: GeneratorOp
config.RequestURL = `${window.location.origin}/api/user/urls`;
delete (config as any).FileFormName;
(config as any).Data = JSON.stringify({ url: '{input}' });
(config as any).Data = JSON.stringify({ destination: '{input}' });
}
const toAddHeaders: UploadHeaders = {