tango-app-api-audit 3.4.63 → 3.4.65
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 +28 -28
- package/package.json +3 -3
- package/src/controllers/traxAudit.controllers.js +5 -0
- package/app.js +0 -40
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# README #
|
|
2
|
-
|
|
3
|
-
This README would normally document whatever steps are necessary to get your application up and running.
|
|
4
|
-
|
|
5
|
-
### What is this repository for? ###
|
|
6
|
-
|
|
7
|
-
* Quick summary
|
|
8
|
-
* Version
|
|
9
|
-
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
|
|
10
|
-
|
|
11
|
-
### How do I get set up? ###
|
|
12
|
-
|
|
13
|
-
* Summary of set up
|
|
14
|
-
* Configuration
|
|
15
|
-
* Dependencies
|
|
16
|
-
* Database configuration
|
|
17
|
-
* How to run tests
|
|
18
|
-
* Deployment instructions
|
|
19
|
-
|
|
20
|
-
### Contribution guidelines ###
|
|
21
|
-
|
|
22
|
-
* Writing tests
|
|
23
|
-
* Code review
|
|
24
|
-
* Other guidelines
|
|
25
|
-
|
|
26
|
-
### Who do I talk to? ###
|
|
27
|
-
|
|
28
|
-
* Repo owner or admin
|
|
1
|
+
# README #
|
|
2
|
+
|
|
3
|
+
This README would normally document whatever steps are necessary to get your application up and running.
|
|
4
|
+
|
|
5
|
+
### What is this repository for? ###
|
|
6
|
+
|
|
7
|
+
* Quick summary
|
|
8
|
+
* Version
|
|
9
|
+
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
|
|
10
|
+
|
|
11
|
+
### How do I get set up? ###
|
|
12
|
+
|
|
13
|
+
* Summary of set up
|
|
14
|
+
* Configuration
|
|
15
|
+
* Dependencies
|
|
16
|
+
* Database configuration
|
|
17
|
+
* How to run tests
|
|
18
|
+
* Deployment instructions
|
|
19
|
+
|
|
20
|
+
### Contribution guidelines ###
|
|
21
|
+
|
|
22
|
+
* Writing tests
|
|
23
|
+
* Code review
|
|
24
|
+
* Other guidelines
|
|
25
|
+
|
|
26
|
+
### Who do I talk to? ###
|
|
27
|
+
|
|
28
|
+
* Repo owner or admin
|
|
29
29
|
* Other community or team contact
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-audit",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.65",
|
|
4
4
|
"description": "audit & audit metrics apis",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "nodemon --exec \"eslint --fix . && node
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node index.js\""
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=18.10.0"
|
|
@@ -5284,6 +5284,11 @@ export async function save( req, res ) {
|
|
|
5284
5284
|
'fileDate.keyword': inputData.fileDate,
|
|
5285
5285
|
},
|
|
5286
5286
|
},
|
|
5287
|
+
{
|
|
5288
|
+
'term': {
|
|
5289
|
+
'moduleType.keyword': inputData.moduleType,
|
|
5290
|
+
},
|
|
5291
|
+
},
|
|
5287
5292
|
];
|
|
5288
5293
|
|
|
5289
5294
|
inputData.moduleType === 'hygiene'?
|
package/app.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
import { auditRouter } from './index.js';
|
|
3
|
-
import dotenv from 'dotenv';
|
|
4
|
-
import { logger } from 'tango-app-api-middleware';
|
|
5
|
-
import { connectdb } from './config/database/database.js';
|
|
6
|
-
import responseMiddleware from './config/response/response.js';
|
|
7
|
-
import errorMiddleware from './config/response/error.js';
|
|
8
|
-
import pkg from 'body-parser';
|
|
9
|
-
import { swaggerConfig } from './config/swagger/swagger.js';
|
|
10
|
-
import swagger from 'swagger-ui-express';
|
|
11
|
-
import { traxAuditRouter } from './src/routes/traxAudit.routes.js';
|
|
12
|
-
import cors from 'cors';
|
|
13
|
-
const { json, urlencoded } = pkg;
|
|
14
|
-
const env=dotenv.config();
|
|
15
|
-
|
|
16
|
-
const app = express();
|
|
17
|
-
const PORT = process.env.PORT || 3000;
|
|
18
|
-
app.use( cors() );
|
|
19
|
-
|
|
20
|
-
app.use( json( { limit: '500mb' } ) );
|
|
21
|
-
app.use(
|
|
22
|
-
urlencoded( {
|
|
23
|
-
extended: true,
|
|
24
|
-
} ),
|
|
25
|
-
);
|
|
26
|
-
app.use( responseMiddleware );
|
|
27
|
-
app.use( errorMiddleware );
|
|
28
|
-
if ( env.error ) {
|
|
29
|
-
logger.error( '.env not found' );
|
|
30
|
-
process.exit( 1 );
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
app.use( '/api-docs', swagger.serve, swagger.setup( swaggerConfig ) );
|
|
34
|
-
app.use( '/v3/audit', auditRouter );
|
|
35
|
-
app.use( '/trax-audit', traxAuditRouter );
|
|
36
|
-
|
|
37
|
-
app.listen( PORT, async () => {
|
|
38
|
-
connectdb();
|
|
39
|
-
logger.info( `server is running on port= ${PORT} ` );
|
|
40
|
-
} );
|