13 lines
334 B
TypeScript
13 lines
334 B
TypeScript
import { Hono } from 'hono';
|
|
import { resultJson } from '@/http/problem-details';
|
|
import { GetAccount } from './use-case';
|
|
|
|
const route = new Hono();
|
|
|
|
route.get('/accounts/:accountId', async (c) => {
|
|
const result = await new GetAccount().execute(c.req.param('accountId'));
|
|
return resultJson(c, result);
|
|
});
|
|
|
|
export default route;
|