mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-18 13:51:00 +08:00
10 lines
270 B
TypeScript
10 lines
270 B
TypeScript
// @ts-ignore
|
|
// eslint-disable-next-line antfu/no-import-dist
|
|
import { createApp } from "../dist/server/index.mjs"
|
|
|
|
export default async function handler(req: any, res: any) {
|
|
const app = await createApp()
|
|
await app.ready()
|
|
app.server.emit("request", req, res)
|
|
}
|