Skip to content

Commit 651245e

Browse files
committed
fix wrong doc
1 parent 19d9832 commit 651245e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docs/architecture.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const uploadToSwarm = async (file: File, stamp: string) => {
147147
const formData = new FormData();
148148
formData.append('file', file);
149149

150-
const response = await fetch(`${beeApiUrl}/bytes`, {
150+
const response = await fetch(`${beeApiUrl}/bzz`, {
151151
method: 'POST',
152152
headers: {
153153
'swarm-postage-batch-id': stamp,
@@ -257,11 +257,10 @@ GET / v1 / transactions / { txHash } / status;
257257

258258
- **API**: Direct HTTP API calls to Bee nodes
259259
- **Endpoints Used**:
260-
- `POST /bytes` - Upload files
261-
- `GET /bytes/{reference}` - Retrieve files
262-
- `POST /stamps` - Create postage stamps
260+
- `POST /bzz` - Upload files
261+
- `GET /bzz/{reference}` - Retrieve files (via gateway)
262+
- `GET /stamps/{id}` - Get stamp information
263263
- `GET /stamps` - List stamps
264-
- `PATCH /stamps/{id}` - Top up stamps
265264

266265
**Configuration:**
267266

0 commit comments

Comments
 (0)