Skip to content

Commit e1e78c6

Browse files
authored
書籍検索システムの解答例のURLパスを/sendから/searchにした (#827)
1 parent d3d0980 commit e1e78c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/3-web-servers/06-form/_samples/book-search-system/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const books = [
1212

1313
app.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
);

docs/3-web-servers/06-form/_samples/book-search-system/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>書籍検索システムの解答例</title>
66
</head>
77
<body>
8-
<form action="/send">
8+
<form action="/search">
99
<input name="author" />
1010
<button>検索</button>
1111
</form>

docs/3-web-servers/06-form/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

219219
app.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
);

0 commit comments

Comments
 (0)