feat: 添加query功能
This commit is contained in:
17
test/node-adapter.ts
Normal file
17
test/node-adapter.ts
Normal 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();
|
||||
Reference in New Issue
Block a user