Example #1
0
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})
});
Example #2
0
router.post('/stat', function *() {
    this.type = 'application/json';
    this.body = yield model.countBySource(['soufun', '58', 'anjuke']);
});