From 0074182261679223162beb76c3a11adec8d32c15 Mon Sep 17 00:00:00 2001 From: Taku SHIMOSAWA Date: Wed, 5 Mar 2025 16:37:27 +0900 Subject: [PATCH] Fix typos in labs/input2 This fixes some typos in labs/input2 found during the translation. Signed-off-by: Taku SHIMOSAWA --- docs/labs/input2.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/labs/input2.html b/docs/labs/input2.html index 2ed03c85..b7e15dba 100644 --- a/docs/labs/input2.html +++ b/docs/labs/input2.html @@ -43,9 +43,9 @@

Background

The code below sets up handlers for a get request on path -/invoices. +/parts. This code could be triggered, for example, by requesting -http://localhost:3000/part?id=AX-794-7 +http://localhost:3000/parts?id=AX-794-7 (if it was running at localhost and responding to port 3000). If there are no validation errors, the code is supposed to show the part id. If there is a validation error, it responds with HTTP @@ -144,7 +144,7 @@

Interactive Lab ()

app.get('/parts', - (req, res) => { // Execute this code if /invoices seen + (req, res) => { // Execute this code if /parts seen const result = validationResult(req); // Retrieve errors if (result.isEmpty()) { // No errors const data = matchedData(req); // Retrieve matching data