@incarnate/cloud
v6.0.1
Published
Cloud Function Middleware for Incarnate
Downloads
6
Readme
Incarnate Cloud
Cloud Function Middleware for Incarnate
Install
npm i -S @incarnate/cloud
API Docs
http://cloud.incarnate.resist.design
Usage
import { AWS } from '@incarnate/cloud';
module.exports = {
handler: AWS({
incarnateConfig: {
subMap: {
package: {
subMap: {
service: {
factory: () => {
return {
method: async arg1 => `Received: ${arg1}`,
};
},
},
},
},
},
},
allowedPaths: ['/package/service/method'],
allowedOrigin: 'https://example.com',
}),
};