mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
use blade as conmmands template (#444)
* use blade as conmmands template * fix lint * fix ssl
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
curl --location --request POST 'https://api.dropboxapi.com/2/files/delete_v2' \
|
||||
--header 'Authorization: Bearer {{ $token }}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"path": "{{ $src }}"
|
||||
}'
|
4
resources/views/ssh/storage/dropbox/download.blade.php
Normal file
4
resources/views/ssh/storage/dropbox/download.blade.php
Normal file
@ -0,0 +1,4 @@
|
||||
curl -o {{ $dest }} --location --request POST 'https://content.dropboxapi.com/2/files/download' \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Dropbox-API-Arg: {"path":"{{ $src }}"}' \
|
||||
--header 'Authorization: Bearer {{ $token }}'
|
6
resources/views/ssh/storage/dropbox/upload.blade.php
Normal file
6
resources/views/ssh/storage/dropbox/upload.blade.php
Normal file
@ -0,0 +1,6 @@
|
||||
curl -sb --location --request POST 'https://content.dropboxapi.com/2/files/upload' \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Dropbox-API-Arg: {"path":"{{ $dest }}"}' \
|
||||
--header 'Content-Type: text/plain; charset=dropbox-cors-hack' \
|
||||
--header 'Authorization: Bearer {{ $token }}' \
|
||||
--data-binary '@{{ $src }}'
|
Reference in New Issue
Block a user