@uniorganization/uni-lib 1.0.3 → 1.0.4
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/config/index.d.ts
CHANGED
package/dist/config/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setUpSwagger(app: any): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setUpSwagger = void 0;
|
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
|
+
function setUpSwagger(app) {
|
|
6
|
+
const options = new swagger_1.DocumentBuilder()
|
|
7
|
+
.setTitle('UNI')
|
|
8
|
+
.setDescription('UNI API')
|
|
9
|
+
.setVersion('1.0.0')
|
|
10
|
+
.build();
|
|
11
|
+
const document = swagger_1.SwaggerModule.createDocument(app, options);
|
|
12
|
+
swagger_1.SwaggerModule.setup('api', app, document);
|
|
13
|
+
}
|
|
14
|
+
exports.setUpSwagger = setUpSwagger;
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniorganization/uni-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "UNI Library",
|
|
5
5
|
"author": "Jhomiguel",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"@nestjs/common": "^8.2.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@nestjs/swagger": "^5.1.5",
|
|
28
|
+
"swagger-ui-express": "^4.1.6",
|
|
27
29
|
"typeorm": "^0.2.41"
|
|
28
30
|
},
|
|
29
31
|
"devDependencies": {
|