rsshub
Version:
Make RSS Great Again!
22 lines (18 loc) • 412 B
text/typescript
import { setConfig } from '@/config';
import { Hono } from 'hono';
let app: Hono;
export const init = async (conf) => {
setConfig(
Object.assign(
{
IS_PACKAGE: true,
},
conf
)
);
app = (await import('@/app')).default;
};
export const request = async (path) => {
const res = await app.request(path);
return res.json();
};