@faasjs/server

License: MITopen in new windowNPM Stable Versionopen in new windowNPM Beta Versionopen in new window

FaasJS's server module.

Install

npm install @faasjs/server

Routing

Static routing:

  • / -> index.func.ts or index.func.tsx
  • /path -> path.func.ts or path.func.tsx or path/index.func.ts or path/index.func.tsx

Dynamic routing:

  • /* -> default.func.ts or default.func.tsx
  • /path/* -> path/default.func.ts or path/default.func.tsx

Modules

Classes

Functions

Functions

closeAll

closeAll(): Promise<void>

Returns

Promise<void>


getAll

getAll(): Server[]

Returns

Server[]