c2-http 1.0.111 → 1.0.112
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.
|
@@ -11,7 +11,10 @@ const ValidateTokenFlowItem_1 = __importDefault(require("./item/ValidateTokenFlo
|
|
|
11
11
|
class MiddlewareCheckTokenFlow {
|
|
12
12
|
config = async (request, response, next) => {
|
|
13
13
|
try {
|
|
14
|
-
if (request.path
|
|
14
|
+
if ((request.path === "/metrics" ||
|
|
15
|
+
request.path.startsWith("/metrics") ||
|
|
16
|
+
request.path?.includes("/docs"))
|
|
17
|
+
&& request.method === "GET") {
|
|
15
18
|
next();
|
|
16
19
|
return;
|
|
17
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c2-http",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.112",
|
|
4
4
|
"description": "Biblioteca Typescript para API NodeJS",
|
|
5
5
|
"repository": "https://cabralsilva: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@github.com/cabralsilva/c2-http.git",
|
|
6
6
|
"author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",
|