kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import { Hono } from "hono";
2import { describeRoute, resolver } from "hono-openapi";
3import { configSchema } from "../schemas";
4import getSettings from "../utils/get-settings";
5
6const config = new Hono().get(
7 "/",
8 describeRoute({
9 operationId: "getConfig",
10 tags: ["Config"],
11 description: "Get application settings and configuration",
12 responses: {
13 200: {
14 description: "Application settings",
15 content: {
16 "application/json": { schema: resolver(configSchema) },
17 },
18 },
19 },
20 }),
21 async (c) => {
22 const settings = getSettings();
23 return c.json(settings);
24 },
25);
26
27export default config;