Created
August 25, 2016 21:44
-
-
Save rotemtam/64afe7a6385a14b0adab4e84b79fae79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const Repository = require('../../../model/Repository') | |
, LambdaRunner = require('../../../lib/lambda-co-runner'); | |
function *main(e) { | |
let query = e.queryParams.q | |
, res = yield Repository.search(query); | |
return {items: res.items}; | |
} | |
module.exports = { | |
default: LambdaRunner(main) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment