feat: 添加checkAppId函数以验证上下文中的App ID,并在auth中间件中使用
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user