1
0
mirror of https://github.com/andrigamerita/simpkey synced 2025-06-05 22:09:26 +02:00

通知を見れるように & デザイン調整

This commit is contained in:
Xeltica
2020-07-24 12:39:34 +09:00
parent de68f25538
commit 398e74acd1
5 changed files with 71 additions and 17 deletions

View File

@ -89,6 +89,19 @@ router.get('/gtl', async ctx => {
}
});
router.get('/notifications', async ctx => {
const token = ctx.cookies.get('i');
const host = ctx.cookies.get('host');
if (!token || !host) {
await die(ctx, 'ログインしてください');
return;
}
const notifications = await api<any>(host, 'i/notifications', { i: token });
await ctx.render('notifications', { notifications });
});
router.get('/renote', async ctx => {
const token = ctx.cookies.get('i');
const host = ctx.cookies.get('host');