refactored storage, style tweaks

This commit is contained in:
Danny Coates
2020-07-25 11:22:57 -07:00
parent 8fb770a4ea
commit 55df061567
8 changed files with 42 additions and 30 deletions

View File

@@ -13,7 +13,10 @@ module.exports = function(app = choo({ hash: true })) {
app.route('/oauth', function(state, emit) {
emit('authenticate', state.query.code, state.query.state);
});
app.route('/login', body(require('./ui/home')));
app.route('/login', function(state, emit) {
emit('replaceState', '/');
setTimeout(() => emit('render'));
});
app.route('/report', body(require('./ui/report')));
app.route('*', body(require('./ui/notFound')));
return app;