kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at cd7cada2f86b4e866a15b4323bb8d6d7ab5bba8b 27 lines 656 B view raw
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;