feat: move vercel entrance to api

This commit is contained in:
DIYgod
2024-03-01 02:15:11 +08:00
parent 9169e5fe9b
commit 6cc452bf60
3 changed files with 2 additions and 2 deletions

11
api/vercel.ts Normal file
View File

@@ -0,0 +1,11 @@
import { handle } from 'hono/vercel';
import app from '@/app';
import logger from '@/utils/logger';
export const runtime = 'edge';
logger.info(`🎉 RSSHub is running! Cheers!`);
logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/support');
export const GET = handle(app);
export const POST = handle(app);