This commit is contained in:
cdle
2023-07-08 12:57:11 +08:00
parent 4bf46badb4
commit 87e6f98876
11 changed files with 133 additions and 71 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ func initWeb() {
if c.Request.URL.Path == path && c.Request.Method == method {
req.handled = true
function.Handle(&Faker{
Type: "*",
Type: "http",
}, func(vm *goja.Runtime) {
vm.Set("res", res)
vm.Set("req", req)