c2-http 1.0.34 → 1.0.36
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 +2 -4
- package/package.json +1 -1
package/dist/model/Server.js
CHANGED
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Server = void 0;
|
|
7
7
|
const express_1 = __importDefault(require("express"));
|
|
8
8
|
const i18n_1 = require("../i18n");
|
|
9
|
-
const swagger_ui_express_1 = __importDefault(require("swagger-ui-express"));
|
|
10
|
-
const Controller_1 = require("./Controller");
|
|
11
9
|
class Server {
|
|
12
10
|
app;
|
|
13
11
|
config;
|
|
@@ -18,12 +16,12 @@ class Server {
|
|
|
18
16
|
async initialize(callback) {
|
|
19
17
|
(0, i18n_1.initializei18n)(this.config.i18n);
|
|
20
18
|
console.log(`Initializing server on ${this.config.port}...`);
|
|
21
|
-
this.app.get("/docs",
|
|
19
|
+
// this.app.get("/docs", swaggerUI.serve, swaggerUI.setup(Controller.openApi))
|
|
22
20
|
this.config.globalMiddleware(this.app);
|
|
23
21
|
for (const router of this.config.routes) {
|
|
24
22
|
this.app.use(router);
|
|
25
23
|
}
|
|
26
|
-
this.app.use(this.config.tokenCheckMiddleware)
|
|
24
|
+
// this.app.use(this.config.tokenCheckMiddleware)
|
|
27
25
|
for (const router of this.config.routesWithToken) {
|
|
28
26
|
this.app.use(router);
|
|
29
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c2-http",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
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>",
|