"use strict"; // P A C K A G E S import html from "choo/html"; import { require as local } from "app-root-path"; // U T I L S const page404 = local("/app/views/404.js"); const redirects = local("/app/data/redirects.json"); // E X P O R T module.exports = exports = state => { const redirectUrl = redirects[state.href]; if (redirectUrl) { return html`

Redirecting you to ${redirectUrl}

`; } else { return page404(); } };