File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ <h2>Background</h2>
4343
4444< p >
4545The code below sets up handlers for a < tt > get</ tt > request on path
46- < tt > /invoices </ tt > .
46+ < tt > /parts </ tt > .
4747This code could be triggered, for example, by requesting
48- < tt > http://localhost:3000/part ?id=AX-794-7</ tt >
48+ < tt > http://localhost:3000/parts ?id=AX-794-7</ tt >
4949(if it was running at < tt > localhost</ tt > and responding to port 3000).
5050If there are no validation errors, the code is supposed to show the part id.
5151If there is a validation error, it responds with HTTP
@@ -144,7 +144,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
144144app.get('/parts',
145145< textarea id ="attempt0 " rows ="2 " cols ="64 " spellcheck ="false ">
146146 ,</ textarea >
147- (req, res) => { // Execute this code if /invoices seen
147+ (req, res) => { // Execute this code if /parts seen
148148 const result = validationResult(req); // Retrieve errors
149149 if (result.isEmpty()) { // No errors
150150 const data = matchedData(req); // Retrieve matching data
You can’t perform that action at this time.
0 commit comments