|
|
@@ -267,6 +267,7 @@ export function createCrudRoutes<
|
|
|
}, 500);
|
|
|
}
|
|
|
})
|
|
|
+ // @ts-ignore
|
|
|
.openapi(createRouteDef, async (c: any) => {
|
|
|
try {
|
|
|
const data = c.req.valid('json');
|
|
|
@@ -288,6 +289,7 @@ export function createCrudRoutes<
|
|
|
}, 500);
|
|
|
}
|
|
|
})
|
|
|
+ // @ts-ignore
|
|
|
.openapi(getRouteDef, async (c: any) => {
|
|
|
try {
|
|
|
const { id } = c.req.valid('param');
|
|
|
@@ -314,6 +316,7 @@ export function createCrudRoutes<
|
|
|
}, 500);
|
|
|
}
|
|
|
})
|
|
|
+ // @ts-ignore
|
|
|
.openapi(updateRouteDef, async (c: any) => {
|
|
|
try {
|
|
|
const { id } = c.req.valid('param');
|
|
|
@@ -423,6 +426,7 @@ export function createCrudRoutes<
|
|
|
}, 500);
|
|
|
}
|
|
|
})
|
|
|
+ // @ts-ignore
|
|
|
.openapi(getRouteDef, async (c: any) => {
|
|
|
try {
|
|
|
const { id } = c.req.valid('param');
|