Skip to content

Commit d6f6853

Browse files
committed
docs: update renterd-js example api
1 parent 8e2d399 commit d6f6853

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libs/renterd-js/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import { Bus, Worker, Autopilot } from '@siafoundation/renterd-js'
1515

1616
export async function example() {
1717
const bus = Bus({
18-
api: 'http://localhost:9980',
18+
api: 'http://localhost:9980/api',
1919
password: 'password1337',
2020
})
2121
const autopilot = Autopilot({
22-
api: 'http://localhost:9980',
22+
api: 'http://localhost:9980/api',
2323
password: 'password1337',
2424
})
2525
const worker = Worker({
26-
api: 'http://worker:4444',
26+
api: 'http://worker:4444/api',
2727
password: 'password1337',
2828
})
2929

libs/renterd-js/src/example.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { Worker } from './worker'
44

55
export async function example() {
66
const bus = Bus({
7-
api: 'http://localhost:9980',
7+
api: 'http://localhost:9980/api',
88
password: 'password1337',
99
})
1010
const autopilot = Autopilot({
11-
api: 'http://localhost:9980',
11+
api: 'http://localhost:9980/api',
1212
password: 'password1337',
1313
})
1414
const worker = Worker({
15-
api: 'http://worker:4444',
15+
api: 'http://worker:4444/api',
1616
password: 'password1337',
1717
})
1818

0 commit comments

Comments
 (0)