Add middleware.
This commit is contained in:
parent
c39cb5ed34
commit
5dbcd597cd
22
app/src/middleware/config.ts
Normal file
22
app/src/middleware/config.ts
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user