serverless-local-dev-server
Version:
Develop Alexa-Skill and HTTP functions in Serverless without deploying to AWS
23 lines (20 loc) • 428 B
JavaScript
class Endpoint {
constructor (eventConfig, func) {
this.method = 'GET'
this.path = ''
}
/* istanbul ignore next */
getLambdaEvent (request) {
return {}
}
/* istanbul ignore next */
handleLambdaSuccess (response, result) {
response.sendStatus(204)
}
/* istanbul ignore next */
handleLambdaFailure (response, error) {
response.sendStatus(500)
}
}
module.exports = Endpoint