diff --git a/app/src/middleware/config.ts b/app/src/middleware/config.ts new file mode 100644 index 0000000..550a6c8 --- /dev/null +++ b/app/src/middleware/config.ts @@ -0,0 +1,22 @@ +import { Hono } from 'hono'; +import { Context } from 'hono'; + +type SiteConfig = { + name: string, + description: string, + baseUrl: string +}; + +const config: SiteConfig = { + name: "Slovocast", + description: "A no-nonesense Podcast hosting platform.", + baseUrl: "dev.slovocast.com" +}; + +const configMiddleware = new Hono(); +configMiddleware.use((c: Context, next) => { + c.set('config', config); + next(); +}); + +export SiteConfig, configMiddleware;