mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
fix: sharex url shortening config (#664)
V4 API requires destination, not url anymore. This should fix the generated config for url shortening.
This commit is contained in:
parent
084feadc01
commit
f68d670600
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue