From dce1051ccd5c62487aea94f98671cdab2248db5b Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Fri, 11 Apr 2025 04:00:38 +0000 Subject: [PATCH] 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 --- server/routes.ts | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/server/routes.ts b/server/routes.ts index ad59819..8b34dd6 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -4958,21 +4958,7 @@ export async function registerRoutes(app: Express): Promise { } }); - /** - * @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 { } }); - /** - * @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