Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2018 22:23
What would you like to do?
An 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 class="lead">TODO REAL BUTTON HEREEEE</p>
exports.handler = arc.html.get(route)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment