Skip to content

Commit

Permalink
Updates master node lookup to use new dvid api
Browse files Browse the repository at this point in the history
The old master lookup used an old branches/key/master keyvalue that had
to be added manually. This update switches to the
/api/repo/{id}/branch-versions/master endpoint, which is the correct way
moving forward.
  • Loading branch information
neomorphic committed Aug 25, 2022
1 parent d02fd0a commit c7c91c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/dvid.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function createRepo(options) {
}

export function masterUUID(rootUUID) {
return api.node({uuid: rootUUID, endpoint: 'branches/key/master'});
return api.repo({uuid: rootUUID, endpoint: 'branch-versions/master'});
}

export function getDefaultInstances(uuid) {
Expand Down

0 comments on commit c7c91c5

Please sign in to comment.