export function arriValidator<T extends AObjectSchema>(schema: T): MiddlewareHandler {
const problemSchema = problemResponse(schema);
return async (c, next) => {
await next();
const responseData = await c.res.json();
return c.json({ message: "But why." });
// return respondWith(c, problemSchema, responseData);
};
}
export function arriValidator<T extends AObjectSchema>(schema: T): MiddlewareHandler {
const problemSchema = problemResponse(schema);
return async (c, next) => {
await next();
const responseData = await c.res.json();
return c.json({ message: "But why." });
// return respondWith(c, problemSchema, responseData);
};
}