Skip to content

Commit

Permalink
Add route_str to routes_segments (#33)
Browse files Browse the repository at this point in the history
* added staging url

* added endpoint

* updated `dist/`

* compiled `dist/`

* removed staging url

* removed staging url

* revert

* stash (no clue how to run this correctly lol)

* Revert "stash (no clue how to run this correctly lol)"

This reverts commit 42e6a1f.

* fix

* build

* build

---------

Co-authored-by: vishalkrishnads <[email protected]>
  • Loading branch information
sshane and vishalkrishnads committed Jul 12, 2024
1 parent d23b152 commit fe089dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/drives.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ export function getSegmentMetadata(start, end, dongleId) {
to: end
});
}
export function getRoutesSegments(dongleId, start, end, limit) {
export function getRoutesSegments(dongleId, start, end, limit, route_str) {
return request.get(`v1/devices/${dongleId}/routes_segments`, {
start,
end,
limit
limit,
route_str
});
}
export function getRouteInfo(routeName) {
Expand Down
6 changes: 4 additions & 2 deletions src/drives.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export function getSegmentMetadata(start, end, dongleId) {
});
}

export function getRoutesSegments(dongleId, start, end, limit) {
return request.get(`v1/devices/${dongleId}/routes_segments`, { start, end, limit });
export function getRoutesSegments(dongleId, start, end, limit, route_str) {
return request.get(`v1/devices/${dongleId}/routes_segments`, {
start, end, limit, route_str,
});
}

export function getRouteInfo(routeName) {
Expand Down

0 comments on commit fe089dc

Please sign in to comment.