feat: 添加checkAppId函数以验证上下文中的App ID,并在auth中间件中使用

This commit is contained in:
2026-03-09 19:23:51 +08:00
parent e68b77f871
commit efb30708eb
2 changed files with 36 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import { IncomingMessage, ServerResponse } from 'http';
type ProxyOptions = {
createNotFoundPage: (msg?: string) => any;
};
// /n5/:slug
// /n5/:slug/
export const N5Proxy = async (req: IncomingMessage, res: ServerResponse, opts?: ProxyOptions) => {
const { url } = req;
const _url = new URL(url || '', `http://localhost`);