https://github.com/toasterofbread/discordimageindex
https://github.com/toasterofbread/discordimageindex
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/toasterofbread/discordimageindex
- Owner: toasterofbread
- Created: 2023-09-21T21:57:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T10:46:05.000Z (about 2 years ago)
- Last Synced: 2024-05-01T14:09:18.674Z (almost 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discordimageindex
Used in https://github.com/toasterofbread/spmp
### Currently hosted as a [Supabase](https://supabase.com/) edge function
The Supabase URL and api key can be found here: https://github.com/toasterofbread/spmp/blob/main/keys.properties
**To directly view the source code of the hosted function (get-images):**
- Send a get request to `https://api.supabase.com/v1/projects/opdupqbpxdfaqgdffyun/functions/get-images/body` with the `Authorization` header set to `Bearer: `
- Decode Brotli-encoded response
As a curl command:
```
curl 'https://api.supabase.com/v1/projects/opdupqbpxdfaqgdffyun/functions/get-images/body' -H "Authorization: Bearer " --output - | brotli -d -o source_code.js
```