diff --git a/packages/api/src/routes.js b/packages/api/src/routes.js index 242a4e9a3..4e8cc56e5 100644 --- a/packages/api/src/routes.js +++ b/packages/api/src/routes.js @@ -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 },