Skip to content

Commit

Permalink
fix: gateway readme (#31)
Browse files Browse the repository at this point in the history
* fix: gateway readme

* defaults
  • Loading branch information
Arqu authored May 10, 2022
1 parent b1c49a1 commit e94a7e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions iroh-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ A rust implementation of an IPFS gateway.

- `IROH_INSTANCE_ID` - unique instance identifier, preferably some name than hard id (default: generated lower & snake case name)
- `IROH_ENV` - indicates the service environment (default: `dev`)

## Endpoints

| Endpoint | Flag | Description | Default |
|-----------------------------------|--------------------------------------------|-----------------------------------------------------------------------------------------|------------|
| `/ipfs/:cid` & `/ipfs/:cid/:path` | `?format={"", "fs", "raw", "car", "html"}` | Specifies the serving format & content-type | `""/fs` |
| | `?filename=DESIRED_FILE_NAME` | Specifies a filename for the attachment | `{cid}.bin` |
| | `?download={true, false}` | Sets content-disposition to attachment, browser prompts to save file instead of loading | `false` |

0 comments on commit e94a7e0

Please sign in to comment.