Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An arc.codes route handler that uses bootstrap
const arc = require('@architect/functions')
const layout = require('@architect/shared/views/bootstrap')
function route(req, res) {
let html = layout({
title: 'My App',
body: `
<div class=jumbotron>
<h1 class=display-4>Add to Slack</h1>
<p class=lead>Install this app to start using it in Slack.</p>
<hr class=my-4>
<p>${msg}</p>
<p class="lead">TODO REAL BUTTON HEREEEE</p>
</div>`,
})
res({html})
}
exports.handler = arc.html.get(route)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment