Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/github30/deta-drive-proxy
- Owner: GitHub30
- License: mit
- Created: 2022-08-31T07:17:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-31T15:00:22.000Z (over 2 years ago)
- Last Synced: 2024-12-20T03:06:49.986Z (6 days ago)
- Topics: deta, deta-base, deta-drive, deta-micros, express, expressjs, nodejs
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 installecho 'BINARY_CONTENT_TYPES=image/*,audio/*,video/*,font/*,application/*' >> .env
echo 'KEY=xxxxxxxxxxx' >> .env
deta update -e .envdeta deploy
# for Debug
deta visor enable
```