diff --git a/nodeJS/express/forms_and_data_handling.md b/nodeJS/express/forms_and_data_handling.md index b4f8af67e22..3b94e0e7267 100644 --- a/nodeJS/express/forms_and_data_handling.md +++ b/nodeJS/express/forms_and_data_handling.md @@ -19,7 +19,7 @@ Let's create a simple HTML form, with a single text field for collecting a full The HTML structure would look something like this: ```html -
+ @@ -180,8 +180,8 @@ const usersRouter = Router(); const usersController = require("../controllers/usersController"); // User update routes -usersRouter.get("/users/:id/update", usersController.userUpdateGet); -usersRouter.post("/users/:id/update", usersController.userUpdatePost); +usersRouter.get("/:id/update", usersController.userUpdateGet); +usersRouter.post("/:id/update", usersController.userUpdatePost); module.exports = usersRouter; ``` @@ -276,7 +276,7 @@ Next we'll create two views:

<%= title %>

- +