insight-ui-zcash/config/routes.js

23 lines
511 B
JavaScript
Raw Normal View History

2014-01-06 08:33:58 -08:00
'use strict';
module.exports = function(app) {
2014-01-06 09:37:32 -08:00
//Home route
var index = require('../app/controllers/index');
app.get('/', index.render);
2014-01-06 08:33:58 -08:00
2014-01-06 14:02:33 -08:00
//Block routes
2014-01-07 04:48:31 -08:00
var blocks = require('../app/controllers/blocks');
2014-01-08 06:55:24 -08:00
app.get('/api/blocks', blocks.list);
2014-01-08 08:13:50 -08:00
app.get('/api/block/:blockHash', blocks.show);
2014-01-07 04:48:31 -08:00
app.param('blockHash', blocks.block);
2014-01-07 20:47:20 -08:00
var transactions = require('../app/controllers/transactions');
app.get('/api/tx/:txid', transactions.show);
2014-01-08 04:28:24 -08:00
2014-01-07 20:47:20 -08:00
app.param('txid', transactions.transaction);
2014-01-08 04:28:24 -08:00
2014-01-06 08:33:58 -08:00
};