Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/github30/deta-drive-proxy

Download a Deta Drive file without X-Api-Key header
https://github.com/github30/deta-drive-proxy

deta deta-base deta-drive deta-micros express expressjs nodejs

Last synced: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# deta-drive-proxy

### Usage

```bash
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

```bash
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
```