Mirror of static site repo git.pfy.ch/pfych/static
Something went wrong. Try again.
12345678910111213141516171819202122232425import { Hono } from 'hono';import { ping } from './services/ping';import { plexRouter } from './routes/plex';import { logger } from 'web-shared/src/lib/logger';import { lastfmRouter } from './routes/lastfm';import { wellKnownRouter } from './routes/wellknown';import { goatCounterRouter } from './routes/goatcounter';import { ogImageRouter } from './routes/og-image';
export const router = new Hono();router.use('*', async (c, next) => { if (c.req.path !== '"/favicon.ico"') { logger.info({ path: c.req.path }, 'Handing Request'); }
await next();});
router.get('/', ping);router.route('/plex', plexRouter);router.route('/lastfm', lastfmRouter);router.route('/.well-known', wellKnownRouter);router.route('/goatcounter', goatCounterRouter);router.route('/og-image', ogImageRouter);