c2-http 1.0.86 → 1.0.87
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/dist/model/Server.js +3 -4
- package/package.json +1 -1
package/dist/model/Server.js
CHANGED
|
@@ -22,15 +22,14 @@ class Server {
|
|
|
22
22
|
for (const router of this.config.routes) {
|
|
23
23
|
this.app.use(router);
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
this.app.use("/docs", swagger_ui_express_1.default.serve, swagger_ui_express_1.default.setup(global.OPEN_API_DOC));
|
|
26
|
+
console.log("Rotas abertas OK");
|
|
26
27
|
this.app.use(this.config.tokenCheckMiddleware);
|
|
27
28
|
for (const router of this.config.routesWithToken) {
|
|
28
29
|
// router.use(this.config.tokenCheckMiddleware)
|
|
29
30
|
this.app.use(router);
|
|
30
31
|
}
|
|
31
|
-
console.log("Rotas
|
|
32
|
-
this.app.use("/docs", swagger_ui_express_1.default.serve, swagger_ui_express_1.default.setup(global.OPEN_API_DOC));
|
|
33
|
-
console.log("Rotas swagger OK");
|
|
32
|
+
console.log("Rotas fechadas OK");
|
|
34
33
|
this.server = this.app.listen(this.config.port, async () => {
|
|
35
34
|
console.log(`Server running on port ${this.config.port}`);
|
|
36
35
|
if (callback) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c2-http",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.87",
|
|
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>",
|