Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit d7c8016

Browse files
committed
Fix: Remove unusable routes
1 parent 3f67923 commit d7c8016

3 files changed

Lines changed: 0 additions & 38 deletions

File tree

src/config/swagger.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ info:
3333
- Multi Arch Docker builds through docker buildx
3434
- High Availability using single master and unlimited worker nodes!
3535
36-
<details>
37-
<summary>Your container graph</summary>
38-
[Interactive Graph](http://localhost:9876/graph)
39-
40-
[Raw image](http://localhost:9876/graph/image)
41-
42-
---
43-
44-
![Your container graph](http://localhost:9876/graph/image)
45-
</details>
46-
4736
# 🔗 DockStatAPI v2 Documentation
4837
4938
_⚠️ = Deprecation warning_

src/handlers/graph.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ async function generateGraphJSON(
1111
try {
1212
logger.info("generateGraphJSON >>> Starting generation");
1313

14-
// Define the new JSON structure
1514
const graphData = {
1615
nodes: [] as cytoscape.ElementDefinition[],
1716
edges: [] as cytoscape.ElementDefinition[],
@@ -66,7 +65,6 @@ async function generateGraphJSON(
6665
}
6766
}
6867

69-
// Write the new structured JSON to file
7068
atomicWrite(CACHE_DIR_JSON, JSON.stringify(graphData, null, 2));
7169
logger.info("generateGraphJSON <<< JSON file generated successfully");
7270
return true;

src/routes/graphs/routes.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,6 @@ import path from "path";
44
import { rateLimitedReadFile } from "../../utils/rateLimitFS";
55
const router = Router();
66

7-
router.get("/", async (req: Request, res: Response) => {
8-
const ResponseHandler = createResponseHandler(res);
9-
try {
10-
const graphPath = path.join(
11-
__dirname,
12-
"/../../.." + "/src/data/graph.html",
13-
);
14-
return res.contentType("html").status(200).sendFile(graphPath);
15-
} catch (error: unknown) {
16-
const errorMsg = error instanceof Error ? error.message : String(error);
17-
return ResponseHandler.critical(errorMsg);
18-
}
19-
});
20-
21-
router.get("/image", async (req: Request, res: Response) => {
22-
const ResponseHandler = createResponseHandler(res);
23-
try {
24-
const graphPath = path.join(__dirname, "/../../.." + "/src/data/graph.png");
25-
return res.contentType("image/png").status(200).sendFile(graphPath);
26-
} catch (error: unknown) {
27-
const errorMsg = error instanceof Error ? error.message : String(error);
28-
return ResponseHandler.critical(errorMsg);
29-
}
30-
});
31-
327
router.get("/json", async (req: Request, res: Response) => {
338
const ResponseHandler = createResponseHandler(res);
349
try {

0 commit comments

Comments
 (0)