Skip to content

Commit

Permalink
chore: update readme and add example uploaders
Browse files Browse the repository at this point in the history
  • Loading branch information
castdrian committed Dec 30, 2023
1 parent a499987 commit c8602de
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# iShare Examples

This folder contains example uploader files for ishare.

## 📤 Compatible Uploader Services

ishare is confirmed to be compatible with the following uploader services:

- [chibisafe](https://github.com/chibisafe/chibisafe)
- [lumen](https://github.com/ChecksumDev/lumen)
9 changes: 9 additions & 0 deletions examples/chibisafe.iscu
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "chibisafe",
"requestUrl": "https://chibisafe.moe/api/upload",
"headers": {
"x-api-key": "API_KEY"
},
"fileFormName": "file[]",
"responseURL": "{{url}}"
}
11 changes: 11 additions & 0 deletions examples/lumen.iscu
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "lumen",
"requestUrl": "http://localhost:8080/upload",
"headers": {
"x-api-key": "API_KEY"
},
"requestBodyType": "binary",
"responseURL": "http://localhost:8080/{{id}}.{{ext}}?key={{key}}&nonce={{nonce}}",
"deletionURL": "http://localhost:8080/{{id}}.{{ext}}/delete?key={{key}}&nonce={{nonce}}&api_key=API_KEY"
}

0 comments on commit c8602de

Please sign in to comment.