This commit is contained in:
syuilo 2017-11-13 07:32:47 +09:00
parent 0079a88433
commit 5d54b512db
5 changed files with 106 additions and 24 deletions

View file

@ -12,6 +12,7 @@ export default me => {
route('/i/customize-home', customizeHome);
route('/i/drive', drive);
route('/i/drive/folder/:folder', drive);
route('/i/messaging/:user', messaging);
route('/i/mentions', mentions);
route('/post::post', post);
route('/search::query', search);
@ -72,6 +73,12 @@ export default me => {
mount(el);
}
function messaging(ctx) {
const el = document.createElement('mk-messaging-room-page');
el.setAttribute('user', ctx.params.user);
mount(el);
}
function notFound() {
mount(document.createElement('mk-not-found'));
}