Skip to content

Instantly share code, notes, and snippets.

@kristoferjoseph
Created October 25, 2018 21:54
Show Gist options
  • Save kristoferjoseph/0fad1e0fb918c352e2be308fc1ba76e1 to your computer and use it in GitHub Desktop.
Save kristoferjoseph/0fad1e0fb918c352e2be308fc1ba76e1 to your computer and use it in GitHub Desktop.
Example get-index/index.js file for arc-example-views
let Layout = require('@architect/views/layout')
exports.handler = async function http (request) {
return {
type: 'text/html; charset=utf8',
body: Layout()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment