pm2logs/
**/.DS_Store/
logs/
-bin/
\ No newline at end of file
+bin/
+npmcache/
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ai.zencoder.plugin.chat.index">
- <option name="chatMetadata" value="{"744c3e10-33d2-414e-91ed-0472ce689be3":{"id":"744c3e10-33d2-414e-91ed-0472ce689be3","title":"Postgres Model Definitions Update","createdAt":1757523010531,"updatedAt":1757523030127,"isAgent":true,"isNameGenerated":true,"messageCount":3,"lastMessagePreview":"**Modifying model structure**\n\nI need to adjust user.model.js to align with the new schema and creat..."}}" />
+ <option name="activeChatId" value="e1a95f8f-7831-4c3e-ba7d-bc949f94af4b" />
+ <option name="chatMetadata" value="{"e1a95f8f-7831-4c3e-ba7d-bc949f94af4b":{"id":"e1a95f8f-7831-4c3e-ba7d-bc949f94af4b","title":"Write some detailed unit tests for our project ...","createdAt":1758942702303,"updatedAt":1758942703244,"isUnitTestsAgent":true,"messageCount":2,"lastMessagePreview":""},"744c3e10-33d2-414e-91ed-0472ce689be3":{"id":"744c3e10-33d2-414e-91ed-0472ce689be3","title":"Postgres Model Definitions Update","createdAt":1757523010531,"updatedAt":1757523030127,"isAgent":true,"isNameGenerated":true,"messageCount":3,"lastMessagePreview":"**Modifying model structure**\n\nI need to adjust user.model.js to align with the new schema and creat..."}}" />
</component>
</project>
\ No newline at end of file
--- /dev/null
+cache=./npmcache
const express = require( 'express' );
const router = express.Router();
+const swaggerUi = require( 'swagger-ui-express' );
+const swaggerDocument = require( '../../src/swagger.json' );
/**
* Configure API routes
* @returns {Object} Express router with API routes
*/
module.exports.APIRoutes = ( passport ) => {
+
+
+// Swagger documentation
+ // noinspection JSCheckFunctionSignatures
+ router.use( '/api-docs', swaggerUi.serve, swaggerUi.setup( swaggerDocument ) );
+ router.get( '/swagger.json', ( req, res ) => {
+ res.setHeader( 'Content-Type', 'application/json' );
+ res.send( swaggerDocument );
+ } );
+
router.use( '/git', require( './git.routes' )( passport ) );
router.use( '/docker', require( './docker.routes' )( passport ) );
router.use( '/vpn', require( './vpn.routes' )( passport ) );
}
},
"schemes": ["https", "http"],
- "host": "api-phasecustomsoft.com",
+ "host": "api.phasecustomsoft.com",
"basePath": "/",
"securityDefinitions": {
"Bearer": {