11 lines
313 B
TypeScript
Executable file
11 lines
313 B
TypeScript
Executable file
// catchAsync is no longer needed with Hono
|
|
// Hono handles async errors automatically
|
|
// This file is kept for backward compatibility but should be removed in the future
|
|
|
|
import { Context } from 'hono';
|
|
|
|
const catchAsync = (fn: (c: Context) => Promise<Response>) => {
|
|
return fn;
|
|
};
|
|
|
|
export default catchAsync;
|