mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
7 lines
346 B
TypeScript
7 lines
346 B
TypeScript
import { Context } from '@hono/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 };
|