remove /transactions/ endpoint

This commit is contained in:
Manuel Araoz 2015-03-10 14:59:48 -03:00
parent 14d6b0b67e
commit c467586b89
2 changed files with 0 additions and 10 deletions

View File

@ -34,7 +34,6 @@ function initRouter(node) {
router.get('/blocks/:height([0-9]+)', Blocks.get);
// Transaction routes
router.get('/transactions', mockResponse);
router.get('/transactions/:txHash([A-Fa-f0-9]{64})', Transactions.get);
router.post('/transactions/send', Transactions.send);

View File

@ -40,15 +40,6 @@ describe('BitcoreHTTP v1 transactions routes', function() {
agent = request(app);
});
describe('/transactions', function() {
it('works with default parameters', function(cb) {
agent.get('/v1/transactions/')
.expect(200)
.expect({
'message': 'This is a mocked response'
}, cb);
});
});
describe('/transactions/:txHash', function() {
it('fails with invalid txHash', function(cb) {
agent.get('/v1/transactions/abad1dea')