refactored storage, style tweaks
Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
parent
abc58518ea
commit
e909a3bae8
6 changed files with 26 additions and 71 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue