We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4213ffa commit df67be5Copy full SHA for df67be5
src/server/api/routes/stock-option/index.ts
@@ -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