mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-24 08:44:25 +01:00
8 lines
345 B
TypeScript
8 lines
345 B
TypeScript
import type { Context } from 'hono';
|
|
|
|
const emptyArrayController = (c: Context) => c.json([]);
|
|
const emptyObjectController = (c: Context) => c.json({});
|
|
const notImplementedController = (c: Context) => Promise.resolve(c.json({ error: 'Not implemented' }, 404));
|
|
|
|
export { emptyArrayController, emptyObjectController, notImplementedController };
|