├── README.md ├── functions └── hello.js └── netlify.toml /README.md: -------------------------------------------------------------------------------- 1 | # Super simple netlify function example 2 | 3 | You can't make it much simpler than this. 4 | -------------------------------------------------------------------------------- /functions/hello.js: -------------------------------------------------------------------------------- 1 | exports.handler = async event => { 2 | const subject = event.queryStringParameters.name || 'World' 3 | return { 4 | statusCode: 200, 5 | body: `Hello ${subject}!` 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | functions = "./functions" 3 | --------------------------------------------------------------------------------