Google Cloud Functions
Google Cloud Functions is a hosted serverless platform solution provided by Google. It integrates with feTS very well thanks to feTS’s platform independent API.
Installation
npm i fets
Usage
import { createRouter, Response } from 'fets'
export const api = createRouter().route({
method: 'GET',
path: '/greetings',
schemas: {
responses: {
200: {
type: 'object',
properties: {
message: {
type: 'string'
}
},
required: ['message'],
additionalProperties: false
}
}
},
handler: () => Response.json({ message: 'Hello World!' })
})