GitHub30 / deta-drive-proxy

Download a Deta Drive file without X-Api-Key header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Download a Deta Drive file without X-Api-Key header

License:MIT License


Languages

Language:JavaScript 100.0%