@@ -15,7 +15,6 @@ async function serveStaticFile(
1515 } ;
1616}
1717
18-
1918const routeMap : Map < string , ( req : Request ) => Promise < Response > > = new Map ( [
2019 [ "/" , root ] ,
2120 [ "/robots.txt" , await serveStaticFile ( "static/robots.txt" , "text/css" ) ] ,
@@ -95,10 +94,10 @@ async function testJson(req: Request) {
9594 console . log ( "formData" , data ) ;
9695
9796 testInput = {
98- engine : "bun " ,
97+ engine : "deno " ,
9998 regex : data . get ( "regex" ) as string ,
10099 replacement : data . get ( "replacement" ) as string ,
101- option : data . getAll ( "option" ) as string [ ] ,
100+ options : data . getAll ( "option" ) as string [ ] ,
102101 inputs : data . getAll ( "input" ) as string [ ] ,
103102 } ;
104103 }
@@ -108,7 +107,7 @@ async function testJson(req: Request) {
108107 engine : searchParams . get ( "engine" ) || "deno" ,
109108 regex : searchParams . get ( "regex" ) || "" ,
110109 replacement : searchParams . get ( "replacement" ) || "" ,
111- option : searchParams . getAll ( "option" ) as string [ ] ,
110+ options : searchParams . getAll ( "option" ) as string [ ] ,
112111 inputs : searchParams . getAll ( "input" ) as string [ ] ,
113112 } ;
114113 console . log ( "searchParams" , searchParams ) ;
0 commit comments