This commit is contained in:
Danny Coates 2018-10-16 16:53:33 -07:00
parent 2b81ff1fb3
commit cc85486414
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
28 changed files with 207 additions and 97 deletions

View file

@ -30,11 +30,9 @@ module.exports = function() {
${modalDialog(state, emit)}
${banner(state, emit)}
${header(state, emit)}
<main class="main">
${page(state, emit)}
</main>
${page(state, emit)}
${footer(state)}
</body>`;
</body>`;
if (state.layout) {
// server side only
return state.layout(state, b);
@ -45,6 +43,7 @@ module.exports = function() {
app.route('/', body(require('../pages/welcome')));
app.route('/share/:id', body(require('../pages/share')));
app.route('/uploads', body(require('../pages/uploads')));
app.route('/download/:id', body(download));
app.route('/download/:id/:key', body(download));
app.route('/unsupported/:reason', body(require('../pages/unsupported')));