6.0.1 • Published 2 years ago

@incarnate/cloud v6.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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