Skip to content

Commit df67be5

Browse files
committed
feat: register option routes
1 parent 4213ffa commit df67be5

File tree

1 file changed

+14
-0
lines changed
  • src/server/api/routes/stock-option

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { PublicAPI } from "@/server/api/hono";
2+
import { create } from "./create";
3+
import { deleteOne } from "./delete";
4+
import { getMany } from "./getMany";
5+
import { getOne } from "./getOne";
6+
import { update } from "./update";
7+
8+
export const registerOptionRoutes = (api: PublicAPI) => {
9+
api.openapi(create.route, create.handler);
10+
api.openapi(getOne.route, getOne.handler);
11+
api.openapi(getMany.route, getMany.handler);
12+
api.openapi(update.route, update.handler);
13+
api.openapi(deleteOne.route, deleteOne.handler);
14+
};

0 commit comments

Comments
 (0)