{"size": 385, "ext": "js", "max_stars_repo_path": "routes/block-router.js", "max_stars_repo_name": "jupiter-project/explorer-backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/block-router.js", "max_issues_repo_name": "jupiter-project/explorer-backend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/block-router.js", "max_forks_repo_name": "jupiter-project/explorer-backend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6666666667, "max_line_length": 54, "alphanum_fraction": 0.7506493506}

const express = require('express')

const BlockCtrl = require('../controllers/block-ctrl')

const router = express.Router()

router.post('/block', BlockCtrl.createBlock)
router.put('/block/:id', BlockCtrl.updateBlock)
router.get('/block/:id', BlockCtrl.getBlockId)
router.get('/blocks', BlockCtrl.getBlocks)
router.get('/blocks/last', BlockCtrl.getLastBlock)

module.exports = router
