mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-08-26 10:37:08 +00:00
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:
+2
-30
@@ -4958,21 +4958,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
// Dashboard endpoints removed from Swagger API as requested
|
||||||
* @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'
|
|
||||||
*/
|
|
||||||
app.get("/api/user-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => {
|
app.get("/api/user-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => {
|
||||||
try {
|
try {
|
||||||
// Get data from the first available LDAP connection
|
// Get data from the first available LDAP connection
|
||||||
@@ -4997,21 +4983,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
// Dashboard endpoints removed from Swagger API as requested
|
||||||
* @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'
|
|
||||||
*/
|
|
||||||
app.get("/api/computer-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => {
|
app.get("/api/computer-dashboard-data", requireAuth({ allowApiToken: true }), async (req, res, next) => {
|
||||||
try {
|
try {
|
||||||
// Get data from the first available LDAP connection
|
// Get data from the first available LDAP connection
|
||||||
|
|||||||
Reference in New Issue
Block a user