mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
13 lines
435 B
TypeScript
13 lines
435 B
TypeScript
import { Handler } from '@hono/hono';
|
|
|
|
const emptyArrayController: Handler = (c) => {
|
|
c.header('Cache-Control', 'max-age=300, public, stale-while-revalidate=60');
|
|
return c.json([]);
|
|
};
|
|
|
|
const notImplementedController: Handler = (c) => {
|
|
c.header('Cache-Control', 'max-age=300, public, stale-while-revalidate=60');
|
|
return c.json({ error: 'Not implemented' }, 404);
|
|
};
|
|
|
|
export { emptyArrayController, notImplementedController };
|