mirror of
https://github.com/andrigamerita/simpkey
synced 2025-06-05 22:09:26 +02:00
通知を見れるように & デザイン調整
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user