feat: 添加query功能

This commit is contained in:
2024-09-08 04:32:41 +08:00
parent 443a41110a
commit 360f6ba180
24 changed files with 6228 additions and 48 deletions

17
test/node-adapter.ts Normal file
View File

@@ -0,0 +1,17 @@
import { nodeAdapter } from "../src/node-adapter";
// tsx test/node-adapter.ts
const main = async () => {
const res = await nodeAdapter({
url: 'http://127.0.0.1/api/router',
headers: {
'Content-Type': 'application/json',
},
body: {
path: 'demo',
key: '1',
},
});
console.log(res);
};
main();