router-http 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +3 -6
package/README.md
CHANGED
|
@@ -108,6 +108,8 @@ router
|
|
|
108
108
|
|
|
109
109
|
They are only will add if the condition is satisfied.
|
|
110
110
|
|
|
111
|
+
Middlewares always run **before** route handlers, regardless of declaration order. This means you can declare `.use()` before or after `.get()` / `.post()` / etc., and the middleware will still execute first.
|
|
112
|
+
|
|
111
113
|
### Prefixing routes
|
|
112
114
|
|
|
113
115
|
In case you need you can prefix all the routes:
|
package/package.json
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
"name": "router-http",
|
|
3
3
|
"description": "Simple HTTP router compatible with Express",
|
|
4
4
|
"homepage": "https://github.com/Kikobeats/router-http",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.12",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "josefrancisco.verdu@gmail.com",
|
|
9
9
|
"name": "Kiko Beats",
|
|
10
10
|
"url": "https://kikobeats.com"
|
|
11
11
|
},
|
|
12
|
+
"contributors": [],
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
14
15
|
"url": "git+https://github.com/Kikobeats/router-http.git"
|
|
@@ -45,7 +46,6 @@
|
|
|
45
46
|
"nano-staged": "latest",
|
|
46
47
|
"simple-git-hooks": "latest",
|
|
47
48
|
"standard": "latest",
|
|
48
|
-
"standard-markdown": "latest",
|
|
49
49
|
"standard-version": "latest"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"clean": "rm -rf node_modules",
|
|
59
59
|
"contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
60
60
|
"coverage": "c8 report --reporter=text-lcov > coverage/lcov.info",
|
|
61
|
-
"lint": "standard
|
|
61
|
+
"lint": "standard",
|
|
62
62
|
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
63
63
|
"prerelease": "npm run contributors",
|
|
64
64
|
"pretest": "npm run lint",
|
|
@@ -83,9 +83,6 @@
|
|
|
83
83
|
"prettier-standard",
|
|
84
84
|
"standard --fix"
|
|
85
85
|
],
|
|
86
|
-
"*.md": [
|
|
87
|
-
"standard-markdown"
|
|
88
|
-
],
|
|
89
86
|
"package.json": [
|
|
90
87
|
"finepack"
|
|
91
88
|
]
|