router.get('/source/:source', function*() { var source = this.params.source; var total = yield model.countBySource(source); yield this.render('../www/views/source', {module: source, total: total}) });
router.post('/stat', function *() { this.type = 'application/json'; this.body = yield model.countBySource(['soufun', '58', 'anjuke']); });