import { Hono } from 'hono'; import { problemJson, resultJson, unauthorizedProblem } from '@/http/problem-details'; import { GetAttentionOverview } from './use-case'; const route = new Hono(); route.get('/', async (c) => { const user = c.get('user'); if (!user) { return problemJson(c, unauthorizedProblem(c.req.path)); } const useCase = new GetAttentionOverview(); const result = await useCase.execute(user.id); return resultJson(c, result); }); export default route;