Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Commit

Permalink
fix: fix parcels format (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Arregui authored Jul 21, 2022
1 parent b7d5123 commit 6fe62c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ export function configureRoutes(
}

const getParcels = async (_: Request, res: Response) => {
const parcelsInfo = services.peersService().getTopology()
res.send(parcelsInfo)
const parcelsInfo = services.peersService().getParcels()

res.send({ parcels: parcelsInfo })
}

app.get('/status', asyncHandler(getStatus))
Expand Down

0 comments on commit 6fe62c9

Please sign in to comment.