File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1111[ ![ npm version] ( https://badge.fury.io/js/express-suite.svg )] ( https://badge.fury.io/js/express-suite )
1212[ ![ ] ( https://img.shields.io/npm/dt/express-suite )] ( )
1313
14+ ## :) More middlewares will be available as the time progresses.
15+
1416## Installation
1517
1618```
1719$ npm i express-suite
1820```
1921
20- ## routeCheck
22+ > ## routeCheck
2123
2224This middleware will handle all requests to non-registered routes for you.
2325
@@ -54,7 +56,7 @@ app.use(routeCheck(app, option));
5456app .listen (5003 );
5557```
5658
57- ## emptyInputCheck
59+ > ## emptyInputCheck
5860
5961This middleware checks for all empty inputs to all routes (unless used at a router level) by checking the ** body** of both POST and GET requests.
6062
@@ -84,7 +86,7 @@ app.use(
8486);
8587
8688// The emptyInputCheck Middleware
87- // It's important that we place the our middleware after the bodyParser middleware
89+ // It's important that we place our middleware after the bodyParser middleware
8890// Make sure you call the emptyInputCheck middleware before the routes are loaded
8991app .use (
9092 emptyInputCheck ({
@@ -102,7 +104,7 @@ app.use('/', example);
102104app .listen (5003 );
103105```
104106
105- ## Tests
107+ > ## Tests
106108
107109The poject uses ** Jest** for testing.
108110
@@ -115,6 +117,6 @@ $ npm i
115117$ npm test
116118```
117119
118- ## License
120+ > ## License
119121
120122[ Apache License 2.0] ( https://github.com/algo7/express-suite/blob/master/LICENSE )
You can’t perform that action at this time.
0 commit comments