{"size": 389, "ext": "js", "max_stars_repo_path": "examples/foobar-vanilla/thud.js", "max_stars_repo_name": "ex-machine/express-ko", "max_stars_repo_stars_event_min_datetime": "2016-02-16T02:37:08.000Z", "max_stars_repo_stars_event_max_datetime": "2017-07-02T13:19:40.000Z", "max_issues_repo_path": "examples/foobar-vanilla/thud.js", "max_issues_repo_name": "ex-machine/express-ko", "max_issues_repo_issues_event_min_datetime": "2016-10-19T06:56:02.000Z", "max_issues_repo_issues_event_max_datetime": "2017-01-29T05:54:20.000Z", "max_forks_repo_path": "examples/foobar-vanilla/thud.js", "max_forks_repo_name": "ex-machine/express-ko", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 17.6818181818, "max_line_length": 53, "alphanum_fraction": 0.5475578406}
'use strict';

let express = require('express');

let thud = express.Router();

thud.param('thud', function (req, res, next, thud) {
	new Promise((resolve) => {
		setTimeout(() => resolve(thud), 20);
	})
		.then((result) => {
			req.thud = result;
			next();
		});
})

thud.all('/:thud', (req, res) => {
	res.send(`paramnesic ${req.thud}`);
})

module.exports = thud;
