tango-app-api-trax 3.9.26 → 3.9.27
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/index.js +2 -2
- package/package.json +1 -1
- package/src/logging/activityLogMiddleware.js +1 -1
package/index.js
CHANGED
|
@@ -9,6 +9,6 @@ import { mobileRouter } from './src/routes/mobileTrax.routes.js';
|
|
|
9
9
|
import { internalTraxRouter } from './src/routes/internalTraxApi.router.js';
|
|
10
10
|
import { locusOrderRouter } from './src/routes/locus.router.js';
|
|
11
11
|
import { traxActivityLogRouter } from './src/routes/activityLog.router.js';
|
|
12
|
-
import
|
|
12
|
+
import traxActivityLogMiddleware from './src/logging/activityLogMiddleware.js';
|
|
13
13
|
|
|
14
|
-
export { traxDashboardRouter, traxFlagRouter, traxRouter, galleryRouter, downloadRouter, mobileRouter, internalTraxRouter, locusOrderRouter, traxActivityLogRouter,
|
|
14
|
+
export { traxDashboardRouter, traxFlagRouter, traxRouter, galleryRouter, downloadRouter, mobileRouter, internalTraxRouter, locusOrderRouter, traxActivityLogRouter, traxActivityLogMiddleware };
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ function refreshUser( ctx, req ) {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export default function
|
|
15
|
+
export default function traxActivityLogMiddleware( req, res, next ) {
|
|
16
16
|
if ( !loggingConfig.enabled ) return next();
|
|
17
17
|
|
|
18
18
|
const WRITE_METHODS = [ 'POST', 'PUT', 'PATCH', 'DELETE' ];
|