Configuration
/**
* Sidecar Config for middleware/guard.ts
*/
module.exports = {
title: "guard.ts",
description: "Auto-generated draft",
};
---
title: "Route Flow: ssutil/src/middleware/guard.ts"
---
flowchart TD
title["Route Flow: ssutil/src/middleware/guard.ts"]
style title fill:none,stroke:none,color:#B4976A,font-size:18px
protectAdminRoutes{{"protectAdminRoutes"}}
style protectAdminRoutes fill:#161b22,color:#fff,stroke:#c2a35d
linkStyle default stroke:#c2a35d,stroke-width:2px,color:#fff
classDef default color:#fff
---
title: "AST Structure: ssutil/src/middleware/guard.ts"
---
graph TD
n0["SF"]
n1["ID"]
n0 --> n1
n3["createMiddleware"]
n1 --> n3
n3 --> n2
style n3 stroke-dasharray:5,stroke:#B4976A
n2["hono/factory"]
style n2 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1
n4["VS"]
n0 --> n4
n6["VD: RESTRICTED_SEGMENTS"]
n4 --> n6
n15["VS"]
n0 --> n15
n18["VD: protectAdminRoutes"]
n15 --> n18
n20["AF"]
n18 --> n20
n22["CE: createMiddleware"]
n20 --> n22
n24["AF"]
n22 --> n24
n32["VS"]
n24 --> n32
n33["VS"]
n24 --> n33
n34["VS"]
n24 --> n34
n35["IS"]
n24 --> n35
n38["CE: next"]
n24 --> n38
style n0 fill:#5E377B,color:#fff,stroke:#B4976A
linkStyle default stroke:#c2a35d,stroke-width:1px,opacity:0.6
AF ArrowFunctionCE CallExpressionIS IfStatementID ImportDeclarationSF SourceFileVD VariableDeclarationVS VariableStatement