Skip to content

Commit

Permalink
Fix identities route path
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Oct 30, 2023
1 parent d609d1a commit ede2714
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/api/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,32 @@ module.exports = ({fastify, mainController, blocksController, transactionsContro
handler: documentsController.getDocumentByIdentifier
},
{
path: '/identities/:identifier',
path: '/identities',
method: 'GET',
handler: identitiesController.getIdentityByIdentifier
handler: identitiesController.getIdentities
},
{
path: '/identities',
path: '/identity/:identifier',
method: 'GET',
handler: identitiesController.getIdentities
handler: identitiesController.getIdentityByIdentifier
},
{
path: '/identities/:identifier/transactions',
path: '/identity/:identifier/transactions',
method: 'GET',
handler: identitiesController.getTransactionsByIdentity
},
{
path: '/identities/:identifier/dataContracts',
path: '/identity/:identifier/dataContracts',
method: 'GET',
handler: identitiesController.getDataContractsByIdentity
},
{
path: '/identities/:identifier/documents',
path: '/identity/:identifier/documents',
method: 'GET',
handler: identitiesController.getDocumentsByIdentity
},
{
path: '/identities/:identifier/transfers',
path: '/identity/:identifier/transfers',
method: 'GET',
handler: identitiesController.getTransfersByIdentity
},
Expand Down

0 comments on commit ede2714

Please sign in to comment.