From 97c2664a31b0e78392687cbdcdecf645c82c283b Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Fri, 11 Apr 2025 04:21:33 +0000 Subject: [PATCH] Remove dashboard endpoints from Swagger 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/c4c87ced-ca60-407c-ab0b-e68ce3bda8cb.jpg --- server/routes.ts | 80 +++--------------------------------------------- 1 file changed, 5 insertions(+), 75 deletions(-) diff --git a/server/routes.ts b/server/routes.ts index 25f8176..4b60a79 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -4947,21 +4947,7 @@ export async function registerRoutes(app: Express): Promise { } }); - /** - * @swagger - * /api/group-dashboard-data: - * get: - * summary: Get group data for dashboard visualizations - * tags: [Dashboard] - * security: - * - cookieAuth: [] - * - bearerAuth: [] - * responses: - * 200: - * description: Group data for dashboard - * 401: - * $ref: '#/components/responses/UnauthorizedError' - */ + // Removed from Swagger documentation - Dashboard endpoint app.get("/api/group-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => { try { // Get data from the first available LDAP connection @@ -4986,21 +4972,7 @@ export async function registerRoutes(app: Express): Promise { } }); - /** - * @swagger - * /api/ou-dashboard-data: - * get: - * summary: Get Organizational Unit data for dashboard visualizations - * tags: [Dashboard] - * security: - * - cookieAuth: [] - * - bearerAuth: [] - * responses: - * 200: - * description: Organizational Unit data for dashboard - * 401: - * $ref: '#/components/responses/UnauthorizedError' - */ + // Removed from Swagger documentation - Dashboard endpoint app.get("/api/ou-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => { try { // Get data from the first available LDAP connection @@ -5025,21 +4997,7 @@ export async function registerRoutes(app: Express): Promise { } }); - /** - * @swagger - * /api/domain-dashboard-data: - * get: - * summary: Get domain data for dashboard visualizations - * tags: [Dashboard] - * security: - * - cookieAuth: [] - * - bearerAuth: [] - * responses: - * 200: - * description: Domain data for dashboard - * 401: - * $ref: '#/components/responses/UnauthorizedError' - */ + // Removed from Swagger documentation - Dashboard endpoint app.get("/api/domain-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => { try { // Get data from the first available LDAP connection @@ -5064,21 +5022,7 @@ export async function registerRoutes(app: Express): Promise { } }); - /** - * @swagger - * /api/site-dashboard-data: - * get: - * summary: Get site data for dashboard visualizations - * tags: [Dashboard] - * security: - * - cookieAuth: [] - * - bearerAuth: [] - * responses: - * 200: - * description: Site data for dashboard - * 401: - * $ref: '#/components/responses/UnauthorizedError' - */ + // Removed from Swagger documentation - Dashboard endpoint app.get("/api/site-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => { try { // Get data from the first available LDAP connection @@ -5103,21 +5047,7 @@ export async function registerRoutes(app: Express): Promise { } }); - /** - * @swagger - * /api/subnet-dashboard-data: - * get: - * summary: Get subnet data for dashboard visualizations - * tags: [Dashboard] - * security: - * - cookieAuth: [] - * - bearerAuth: [] - * responses: - * 200: - * description: Subnet data for dashboard - * 401: - * $ref: '#/components/responses/UnauthorizedError' - */ + // Removed from Swagger documentation - Dashboard endpoint app.get("/api/subnet-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => { try { // Get data from the first available LDAP connection