Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/handlerHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ export default {

},

redirectResponse: function(statusCode, location){

const response = {
statusCode,
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Credentials': true,
'Location': location
}
};
return response;

},

missingIdQueryResponse: function (type) {

return this.createResponse(400, {
Expand Down
1 change: 1 addition & 0 deletions services/hello/test/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// tests for hello
// Generated by serverless-mocha-plugin


import mochaPlugin from 'serverless-mocha-plugin';
const expect = mochaPlugin.chai.expect;
const wrapped = mochaPlugin.getWrapper('hello', '/handler.js', 'hello');
Expand Down
174 changes: 173 additions & 1 deletion services/members/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading