refactored storage, style tweaks

Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
Danny Coates 2020-07-25 11:22:57 -07:00 committed by timvisee
parent abc58518ea
commit e909a3bae8
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
6 changed files with 26 additions and 71 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('*', body(require('./ui/notFound')));
return app;
};