Skip to content

Commit 418b50d

Browse files
committed
Refactor code structure for improved readability and maintainability.
1 parent caeefeb commit 418b50d

3 files changed

Lines changed: 823 additions & 3 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/node_modules
2-
package-lock.json

off-the-shelf-middleware/built-in-middleware.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ const usernameMiddleware = (req,res,next) => {
1313

1414
// middleware for body parsing and validation
1515

16-
app.use(express.text({ type: 'application/json'}));
17-
1816
const validateArrayMiddleware = (req, res, next) => {
1917
// express.json() did the parsing, so..
2018
const data = req.body;

0 commit comments

Comments
 (0)