@incarnate/cloud
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published

Incarnate Cloud

Cloud CI

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',
  }),
};

Readme

Keywords

none

Package Sidebar

Install

npm i @incarnate/cloud

Weekly Downloads

3

Version

6.0.1

License

MIT

Unpacked Size

263 kB

Total Files

28

Last publish

Collaborators

  • resistdesign