Remove dashboard endpoints from Swagger API documentation

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/44547d2d-21a8-4591-ae1a-35ef4e594a3d.jpg
This commit is contained in:
alphaeusmote
2025-04-11 04:00:38 +00:00
parent cec9d65ba7
commit dce1051ccd
+2 -30
View File
@@ -4958,21 +4958,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
}
});
/**
* @swagger
* /api/user-dashboard-data:
* get:
* summary: Get user data for dashboard visualizations
* tags: [Dashboard]
* security:
* - cookieAuth: []
* - bearerAuth: []
* responses:
* 200:
* description: User data for dashboard
* 401:
* $ref: '#/components/responses/UnauthorizedError'
*/
// Dashboard endpoints removed from Swagger API as requested
app.get("/api/user-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => {
try {
// Get data from the first available LDAP connection
@@ -4997,21 +4983,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
}
});
/**
* @swagger
* /api/computer-dashboard-data:
* get:
* summary: Get computer data for dashboard visualizations
* tags: [Dashboard]
* security:
* - cookieAuth: []
* - bearerAuth: []
* responses:
* 200:
* description: Computer data for dashboard
* 401:
* $ref: '#/components/responses/UnauthorizedError'
*/
// Dashboard endpoints removed from Swagger API as requested
app.get("/api/computer-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => {
try {
// Get data from the first available LDAP connection