File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
docs/3-web-servers/06-form
_samples/book-search-system Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const books = [
1212
1313app . use ( express . static ( "./public" ) ) ;
1414
15- app . get ( "/send " , ( request , response ) => {
15+ app . get ( "/search " , ( request , response ) => {
1616 const selectedBooks = books . filter (
1717 ( book ) => book . author === request . query . author ,
1818 ) ;
Original file line number Diff line number Diff line change 55 < title > 書籍検索システムの解答例</ title >
66 </ head >
77 < body >
8- < form action ="/send ">
8+ < form action ="/search ">
99 < input name ="author " />
1010 < button > 検索</ button >
1111 </ form >
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ const evenNumbers = numbers.filter((number) => number % 2 === 0);
197197<Answer >
198198
199199``` html title="public/index.html"
200- <form action =" /send " >
200+ <form action =" /search " >
201201 <input name =" author" />
202202 <button >検索</button >
203203</form >
@@ -218,7 +218,7 @@ const books = [
218218
219219app .use (express .static (" ./public" ));
220220
221- app .get (" /send " , (request , response ) => {
221+ app .get (" /search " , (request , response ) => {
222222 const selectedBooks = books .filter (
223223 (book ) => book .author === request .query .author ,
224224 );
You can’t perform that action at this time.
0 commit comments