Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 721 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 721 Bytes

deta-drive-proxy

Usage

project_id=c0m8f10j
drive_name=Drive
filename=abc/hello.txt
API_KEY=xxxxxxxxxx
curl https://public.deta.dev/$project_id/$drive_name/$filename?key=$API_KEY

A key is required on the first request.

Examples

https://public.deta.dev/c0m8f10j/Drive/eevee.jpg?key=xxxxxxxxxx

https://public.deta.dev/c0m8f10j/Drive/eevee.jpg

Deploy app

git clone https://github.com/GitHub30/deta-drive-proxy
cd deta-drive-proxy
npm install

echo 'BINARY_CONTENT_TYPES=image/*,audio/*,video/*,font/*,application/*' >> .env
echo 'KEY=xxxxxxxxxxx' >> .env
deta update -e .env

deta deploy

# for Debug
deta visor enable