import { Hono } from 'hono'; import type { ProviderConfig, ProxyConfig } from '../../config.js'; import { ModelsPage } from '../views/models.js'; export function createModelsPageRoute(config: ProxyConfig | (() => ProxyConfig)) { const app = new Hono(); app.get('/admin/models', (c) => { const currentConfig = typeof config === 'function' ? config() : config; return c.html(); }); return app; }