Skip to content

Instantly share code, notes, and snippets.

@ryanblock
Created October 22, 2018 03:04
Show Gist options
  • Save ryanblock/b84edf9679b0e5ecc523596adaa19e76 to your computer and use it in GitHub Desktop.
Save ryanblock/b84edf9679b0e5ecc523596adaa19e76 to your computer and use it in GitHub Desktop.
Architect 4.0 HTTP code sample
// src/http/get-index/index.js
exports.handler = async function http(request) {
return {
type: 'text/html',
body: 'Hello world!' // 200 status by default
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment